11.03.2015, 14:15
Then do sth like this:
Код:
new string[128]; format(string,128,"SELECT job FROM `players` WHERE `userid` = '%d'",hereID); mysql_function_query(dbHandle,string, true, "GetData", "i", playerid); forward GetData(playerid); public GetData(playerid) { if(!cache_num_rows()) return SendClientMessage(playerid,-1,"Es wurde nichts gefunden!"); new tmp[11]; cache_get_row(0, 0, tmp); pInfo[playerid][job] = strval(tmp); return 1; }