27.10.2011, 18:33
I don't understand why is dosen't working !!!
stock GetPlayerVariable(playerid, get[])
{
new result[256],SQL[256];
format(SQL, sizeof(SQL), "SELECT `%s` FROM `users` WHERE `username` = '%s'", get, GetName(playerid));
mysql_query(SQL);
mysql_store_result();
mysql_fetch_row(result);
return strval(result);
}
stock GetPlayerVariable(playerid, get[])
{
new result[256],SQL[256];
format(SQL, sizeof(SQL), "SELECT `%s` FROM `users` WHERE `username` = '%s'", get, GetName(playerid));
mysql_query(SQL);
mysql_store_result();
mysql_fetch_row(result);
return strval(result);
}