Scripting with G-Stylezz Mysql Plugin
#1

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
Reply
#2

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,_}:... )
Reply
#3

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.
Reply
#4

Here tutorial fron new plugin https://sampforum.blast.hk/showthread.php?tid=337810

He say it will update it
Reply
#5

Thanks for link, ill get reading!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)