20.06.2011, 15:11
I am using the a_sampmysql and I am completely new to it.
Now I have this:
I understood from this that it will take from table factions where the faction id is equal to faction id mentioned in the public.
But what I don't understand is, what's the sqlresult?
Now I have this:
PHP код:
public MySQLFetchFactionRecord(sqlfactionid, sqlresult[]) // by Luk0r
{
new query[128];
format(query, sizeof(query), "SELECT * FROM `factions` WHERE `factionid` = '%d' LIMIT 1", sqlfactionid);
samp_mysql_query(query);
samp_mysql_store_result();
if(samp_mysql_fetch_row(sqlresult)==1)
{
samp_mysql_free_result();
return 1;
}
return 0;
}
But what I don't understand is, what's the sqlresult?