Getclanslot - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Getclanslot (
/showthread.php?tid=612896)
Getclanslot -
Shinja - 22.07.2016
I'm trying to get clan id from mysql table, like this
Код:
stock Getclanslot(name[])
{
new string[128];
format(string, sizeof(string), "SELECT slot FROM clanlist WHERE cname = '%s'", name);
mysql_query(string);
mysql_store_result();
//I stop here
}
I don't know what else to do, thanks for helping
Re: Getclanslot -
Stinged - 22.07.2016
Use this:
Код:
new slot = mysql_fetch_int(handle);