SA-MP Forums Archive
[Error] error 001: expected token: - 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: [Error] error 001: expected token: (/showthread.php?tid=421503)



[Error] error 001: expected token: - faff - 09.03.2013

Hello Guys, I've been implenting an simple zombie bite script on my Rp Gamemode.
For Events.
Well, After compiling the script, There was an another problem.
This one,
Код:
NYRP.pwn(23782) : error 001: expected token: ",", but found ";"
This is the script
Код:
		new string[128]; // 23781
	      format(string, sizeof(string), "* %s bites %s in his neck.", RPN(playerid), GetClosestPlayerToPlayer(playerid); // 23782
	      PlayerInfo[playerb][pZInfected] = 1; // 23783
I hope someone could help me out!


Re: [Error] error 001: expected token: - Vince - 09.03.2013

Rather obvious missing closing bracket.


Re: [Error] error 001: expected token: - Patrick - 09.03.2013

try this

pawn Код:
new string[128]; // 23781
          format(string, sizeof(string), "* %s bites %s in his neck.", RPN(playerid), GetClosestPlayerToPlayer(playerid)); // 23782
          PlayerInfo[playerb][pZInfected] = 1; // 23783