MySQL errors
#1

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
Reply


Messages In This Thread
MySQL errors - by MechaTech - 29.09.2012, 12:00
Re: MySQL errors - by Camacorn - 29.09.2012, 16:28
Re: MySQL errors - by Necro[ABK] - 29.09.2012, 16:32
Re: MySQL errors - by Camacorn - 29.09.2012, 16:35
Re: MySQL errors - by Necro[ABK] - 29.09.2012, 16:38

Forum Jump:


Users browsing this thread: 3 Guest(s)