PDA

View Full Version : [Error] error 001: expected token:


faff
09/03/2013, 06:38 PM
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!

Vince
09/03/2013, 06:44 PM
Rather obvious missing closing bracket.

Patrick
09/03/2013, 06:48 PM
try this


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