SA-MP Forums Archive
Mysql query (0.3e R7) - 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: Mysql query (0.3e R7) (/showthread.php?tid=341871)



Mysql query (0.3e R7) - [BG]PREDATOR - 12.05.2012

i reasondly fount that mysql_query no more work and now it shout be mysql_function_query but i have no idea how to use it i see its defrend from mysql_query and can someone show me how i can convert all my mysql_query to mysql_function_query and here down example one of my scripts (please use example to show me )


PHP код:
    new log[156];
    
format(log,sizeof(log),"INSERT INTO `playerlog` (`username`,`status`) VALUES ('%s','Disconnect')",PlayerName(playerid));//playername is my stock for getplayername
    
mysql_query(log); 



Re: Mysql query (0.3e R7) - CoaPsyFactor - 12.05.2012

use Notepad++ and than CTRL+F and go to replace tab


Re: Mysql query (0.3e R7) - [BG]PREDATOR - 12.05.2012

Quote:
Originally Posted by CoaPsyFactor
Посмотреть сообщение
use Notepad++ and than CTRL+F and go to replace tab
to replace ? they are 2 diffend

mysql_query( query[] [,resultid = (-1), extraid = (-1), connectionHandle = 1] )

mysql_function_query( connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:... )


Re: Mysql query (0.3e R7) - [BG]PREDATOR - 12.05.2012

anyone ?


Re: Mysql query (0.3e R7) - [BG]PREDATOR - 12.05.2012

please help me i really need that help i will rep+