IP [+REP]
#2

The queries sent to the database can be threaded or non-threaded, there is a different syntax for each one of them. Hoping that you've chosen the threaded ones (mysql_tquery if you're using BlueG's MySQL Plugin), you should take a look at https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_tquery. This wiki page contains all the info you need in order to send a threaded query to the database and process the returned result. In order to extract the parameter of the command, i.e. the IP you are sending with the query, I recommend sscanf. This is the forum page of the sscanf plugin: https://sampforum.blast.hk/showthread.php?tid=120356. This is all you need, it's pretty simple and well explained on the wiki (there, in the example of mysql_tquery).
Reply


Messages In This Thread
IP [+REP] - by arlindi - 27.02.2015, 16:58
Re: IP [+REP] - by HazardouS - 27.02.2015, 18:04
Re: IP [+REP] - by arlindi - 27.02.2015, 18:51
Re: IP [+REP] - by arlindi - 27.02.2015, 21:26
Re: IP [+REP] - by DanishHaq - 27.02.2015, 21:32
Re: IP [+REP] - by arlindi - 27.02.2015, 21:35
Re: IP [+REP] - by HazardouS - 27.02.2015, 22:24
Re: IP [+REP] - by arlindi - 27.02.2015, 22:27
Re: IP [+REP] - by DanishHaq - 27.02.2015, 23:06

Forum Jump:


Users browsing this thread: 1 Guest(s)