SA-MP Forums Archive
[HELP] i got his error every time i Compile - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] i got his error every time i Compile (/showthread.php?tid=295829)



[HELP] i got his error every time i Compile - $lim$hady - 08.11.2011

Code:
C:\Users\Tayab\Desktop\SERVER\gamemodes\stunt.pwn(3062) : error 001: expected token: ",", but found "`"
C:\Users\Tayab\Desktop\SERVER\gamemodes\stunt.pwn(3062) : error 029: invalid expression, assumed zero
C:\Users\Tayab\Desktop\SERVER\gamemodes\stunt.pwn(3062) : error 029: invalid expression, assumed zero
C:\Users\Tayab\Desktop\SERVER\gamemodes\stunt.pwn(3062) : fatal error 107: too many error messages on one line
This Is The Line Which Is Getting Errors

Code:
SendClientMessageToAll(COLOR_GREEN, string);
The Whole Code Is This
Code:
new string[128];
	new pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	format(string, sizeof(string), "Info: %s Has Joined SR!!", pname);
    SendClientMessageToAll(COLOR_GREEN, string);
    GameTextForPlayer(playerid,"~g~Welcome ~y~To ~r~Stunting ~b~Revolution",2000,5);



Re: [HELP] i got his error every time i Compile - [GOD]Dragonster82 - 08.11.2011

I'm afraid OTHER parts of your code has the error.
Sometime when pawn can't read and understand your code, it will give you the wrong line that you need to fix.

Post your whole script here, so I can try to help you out.


Re: [HELP] i got his error every time i Compile - =WoR=G4M3Ov3r - 08.11.2011

Its because you're using a string, instead of using a contant message.

Read this https://sampwiki.blast.hk/wiki/SendClientMessageToAll


Re: [HELP] i got his error every time i Compile - $lim$hady - 08.11.2011

Thnq Very Much Dude i Managed To Figure Out The This Problem
I Cant Do It Without Your Help Thnx Once Again!