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
Playerinfo[playerid][pRobberskill]=PlayerInfo[playerid][pRobberskill]+1;
CMD:skill(playerid,params[]){ new pname[24]; new query[300]; GetPlayerName(playerid,pname,sizeof(pname)); PlayerInfo[playerid][pRobberskill]++; format(query, sizeof(query), "UPDATE `"playerdata"` SET `copsskill`='%i' WHERE `user`='%s'", PlayerInfo[playerid][pRobberskill], pname); mysql_query(query); return 1; }
Код:
CMD:skill(playerid,params[]){ new pname[24]; new query[300]; GetPlayerName(playerid,pname,sizeof(pname)); PlayerInfo[playerid][pRobberskill]++; format(query, sizeof(query), "UPDATE playerdata SET copsskill=%d WHERE user='%s'", PlayerInfo[playerid][pRobberskill], pname); mysql_query(query); return 1; } |
CMD:skill(playerid,params[]){ new pname[24]; new query[90]; GetPlayerName(playerid,pname,sizeof(pname)); format(query, sizeof(query), "UPDATE playerdata SET copsskill=%d WHERE user='%s'", PlayerInfo[playerid][pRobberskill]+1, pname); mysql_query(query); return 1; }