11.09.2013, 18:45
Quote:
C:\samp\gamemodes\dugi.pwn(60) : warning 204: symbol is assigned a value that is never used: "pInfo" C:\samp\gamemodes\dugi.pwn(59) : warning 203: symbol is never used: "Money" C:\samp\gamemodes\dugi.pwn(57) : warning 203: symbol is never used: "Password" C:\samp\gamemodes\dugi.pwn(56) : warning 203: symbol is never used: "Username" C:\samp\gamemodes\dugi.pwn(356) : error 017: undefined symbol "pInfo" C:\samp\gamemodes\dugi.pwn(356) : warning 215: expression has no effect C:\samp\gamemodes\dugi.pwn(356) : error 001: expected token: ";", but found "]" C:\samp\gamemodes\dugi.pwn(356) : error 029: invalid expression, assumed zero C:\samp\gamemodes\dugi.pwn(356) : fatal error 107: too many error messages on one line |
pawn Code:
stock load_stats(playerid)
{
new pName[24], query[80];
GetPlayerName(playerid, pName, 24);
format(query, sizeof(query), "SELECT * FROM server_players WHERE playername = '%s'", pName);
mysql_query(query);
mysql_store_result();
mysql_fetch_row_format(query, "|");
sscanf(query, "e<p<|>s[24]s[23]i>", pInfo[playerid]);
mysql_free_result();
GivePlayerMoney(playerid, pInfo[playerid][Money]);
return 1;
}