29.09.2012, 12:00
I trying to make if a robber do something he will get 1+ point, so first I am going to test it in a command, but it has errors and I dont know how to fix it.
pawn Код:
CMD:skill(playerid,params[])
{
new pname[24];
new query[300];
format(query, sizeof(query), "UPDATE playerdata SET copsskill=%d+1 WHERE user='%s'" PlayerInfo[playerid][pRobberskill], pname);
mysql_query(query);
return 1;
}
Код:
C:\Users\Magdy\Desktop\Games\Server 0.3e\gamemodes\[DG]CNR.pwn(4683) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Magdy\Desktop\Games\Server 0.3e\gamemodes\[DG]CNR.pwn(4683) : warning 215: expression has no effect C:\Users\Magdy\Desktop\Games\Server 0.3e\gamemodes\[DG]CNR.pwn(4683) : warning 215: expression has no effect C:\Users\Magdy\Desktop\Games\Server 0.3e\gamemodes\[DG]CNR.pwn(4683) : error 001: expected token: ";", but found ")" C:\Users\Magdy\Desktop\Games\Server 0.3e\gamemodes\[DG]CNR.pwn(4683) : error 029: invalid expression, assumed zero C:\Users\Magdy\Desktop\Games\Server 0.3e\gamemodes\[DG]CNR.pwn(4683) : fatal error 107: too many error messages on one line