Scripting with G-Stylezz Mysql Plugin - 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: Scripting with G-Stylezz Mysql Plugin (
/showthread.php?tid=357236)
Scripting with G-Stylezz Mysql Plugin -
DarrenReeder - 06.07.2012
Hello,
I would post this into the G-Stylezz thread, but it will take longer to get a response to a simple question.
I use to script with plugin in the past and I would use simple code like this:
pawn Код:
mysql_query(string);
mysql_store_result();
new rows = mysql_num_rows();
mysql_free_result();
if(rows > 0) SendClientMessage(playerid, COLOR_GREEN, "Name exists");
else SendClientMessage(playerid, COLOR_GREEN, "Name dnt exists");
but now when i use this, it says mysql_query is unrecognised. Does anyone know why this happens?
thanks
Re: Scripting with G-Stylezz Mysql Plugin -
doreto - 06.07.2012
If you are using laters version (i thing it was R7) mysql_query was remove ! and it was added
mysql_function_query( connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:... )
Re: Scripting with G-Stylezz Mysql Plugin -
DarrenReeder - 06.07.2012
Oh right okay. I was following the wiki's again and its not updated...
I assume i'm suppose to use this Mysql_Function_query ? But im not sure how to use it.
Re: Scripting with G-Stylezz Mysql Plugin -
doreto - 06.07.2012
Here tutorial fron new plugin
https://sampforum.blast.hk/showthread.php?tid=337810
He say it will update it
Re: Scripting with G-Stylezz Mysql Plugin -
DarrenReeder - 06.07.2012
Thanks for link, ill get reading!