07.01.2015, 18:47
Hi. Can someone explain to me how can I get the result of a Query?
I'm using this plugin:
https://sampwiki.blast.hk/wiki/MySQL/R33
And I don't know how to use the Cache.
I'm trying to do this loop:
And I presume that the query wil return ID... but how can I get that??
I'm using this plugin:
https://sampwiki.blast.hk/wiki/MySQL/R33
And I don't know how to use the Cache.
I'm trying to do this loop:
PHP код:
for(new i = 0; i < MAX_SLOTS; i++)
{
format(query, sizeof(query), "SELECT 'ID' FROM `users` WHERE 'Username' = '%s'", Nome(playerid));
mysql_query(mysql, query, true);
}