13.07.2012, 16:16
(
Последний раз редактировалось gedramens; 13.07.2012 в 22:28.
Причина: No reason
)
I was just playing around with some MySql registration script and I got unexpected errors:
The code is:
How can I fix this ?
Код:
C:\Users\Giedrius\Desktop\samp server\gamemodes\001.pwn(130) : error 001: expected token: "-identifier-", but found "-integer value-" C:\Users\Giedrius\Desktop\samp server\gamemodes\001.pwn(131) : error 001: expected token: "-identifier-", but found "-integer value-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
public OnPlayerDisconnect(playerid, reason) { if(Logged[playerid] == 1) { new score = GetPlayerScore(playerid); //line 130 new money = GetPlayerMoney(playerid); //line 131 new query[200], pname[24]; GetPlayerName(playerid, pname, 24); format(query, sizeof(query), "UPDATE playerdata SET score=%d, money=%d WHERE user='%s'", score, money, pname); mysql_query(query); } return 1; }