24.12.2012, 10:09
Nice tutorial , thanks for it .
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 |
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;
}
F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(95) : error 035: argument type mismatch (argument 1) F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(96) : error 017: undefined symbol "mysql_store_result" F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(97) : error 017: undefined symbol "mysql_fetch_row_format" F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : error 017: undefined symbol "PInfo" F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : warning 215: expression has no effect F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : error 001: expected token: ";", but found "]" F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : error 029: invalid expression, assumed zero F:\Sa-mp 3z alimash\MYSQL Iranian DeathMatch\gamemodes\DeathMatch.pwn(9 : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors. |
stock LoadStats(playerid) { new pName[24],Query[80]; GetPlayerName(playerid,pName,24); format(Query, sizeof(Query), "SELECT * FROM `Users` WHERE `Username` = '%s' ", pName); mysql_query(Query);//Line 95 mysql_store_result();//Line 96 mysql_fetch_row_format(Query, "|");//Line 97 sscanf(Query, "e<p<|>s[24]s[23]i>", PInfo[playerid]);//Line 98 mysql_free_result(); GivePlayerMoney(playerid,PInfo[playerid][Money]); return 1; } |