09.01.2011, 04:48
Why bother creating another function?
pawn Код:
stock GetFromAccount(playerid, 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;
}