09.01.2011, 04:32
Im confused on this error:
The error comes from that code, this line:
pawn Код:
error 017: undefined symbol "playerid"
pawn Код:
stock GetFromAccount(name[], obtaining[], holdingvar[])
{
new Query[180];
format(Query, sizeof(Query), "SELECT `%s` FROM `Users` WHERE `Name` = '%s'", obtaining, UserStats[playerid][Name]);
mysql_query(Query);
mysql_store_result();
if(mysql_fetch_row(holdingvar) == 1)
{
mysql_free_result();
}
return 1;
}
pawn Код:
format(Query, sizeof(Query), "SELECT `%s` FROM `Users` WHERE `Name` = '%s'", obtaining, UserStats[playerid][Name]);