[HELP] i got his error every time i Compile
#1

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);
Reply
#2

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.
Reply
#3

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

Read this https://sampwiki.blast.hk/wiki/SendClientMessageToAll
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)