SA-MP Forums Archive
[Tool/Web/Other] [PHP] SA:MP Query Script with players - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [Tool/Web/Other] [PHP] SA:MP Query Script with players (/showthread.php?tid=54515)

Pages: 1 2


[PHP] SA:MP Query Script with players - [M]deLux - 02.11.2008

JaTochNietDan asked for it, I made it, you can profit from it.

Just a quick query script for your server. Set the IP and port to query at the top of the script.

Link removed as this was originally Peter's script and the core of Peter's script still exists. OP has removed Peter's header and replaced it with his own, claiming full credit in the script itself.

EDIT: complete and total rip-off of someone elses work.


Re: [PHP] SA:MP Query Script with players - Norn - 02.11.2008

That rocks! Good work


Re: [PHP] SA:MP Query Script with players - JaTochNietDan - 02.11.2008

Thanks Lukas


Re: [PHP] SA:MP Query Script with players - whooper - 02.11.2008

woot ty ty ty!


Re: [PHP] SA:MP Query Script with players - filipyoyo - 03.11.2008

error
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /x/xx/x/x/x/samp_querty.php on line 19

Code:
class QueryServer
 {
 	// Private variables used for the query-ing.
 	private $szServerIP;  <<<<<<<<line 19
 	private $iPort;
 	private $rSocketID;



Re: [PHP] SA:MP Query Script with players - Reamis - 03.11.2008

nice one !
http://gta-mp.lt/samp_query.php


Re: [PHP] SA:MP Query Script with players - sebihunter - 03.11.2008

thats great deluxe, very well done!


Re: [PHP] SA:MP Query Script with players - Lidor Kalfa - 03.11.2008

Quote:
Originally Posted by filipyoyo
error
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /x/xx/x/x/x/samp_querty.php on line 19

Code:
class QueryServer
 {
 	// Private variables used for the query-ing.
 	private $szServerIP; <<<<<<<<line 19
 	private $iPort;
 	private $rSocketID;
me 2


Re: [PHP] SA:MP Query Script with players - [M]deLux - 03.11.2008

any error on line 19 will tell you to get php 5

thats not a nice way to tell this, but however


Re: [PHP] SA:MP Query Script with players - g@k - 04.11.2008

any screen ?


Re: [PHP] SA:MP Query Script with players - skada - 04.11.2008

0.0?
this is wierd,i did not understand what is this.


Re: [PHP] SA:MP Query Script with players - [M]deLux - 09.11.2008

Quote:
Originally Posted by g@k
any screen ?
isnt an example enaugh?

Quote:
Originally Posted by Westie
Hmm... this looks really much like the PHP-SDK that Peter released about a year ago.
maybe the class i used is from him and not from the samp team... or is/was peter part of the dev team?

Quote:
Originally Posted by skada
0.0?
this is wierd,i did not understand what is this.
neither do i... a bit more information would be good in order to help you


Re: [PHP] SA:MP Query Script with players - _GriLLeX_ - 10.11.2008

Good script.


Re: [PHP] SA:MP Query Script with players - matt2127 - 10.11.2008

I don't get what it is


Re: [PHP] SA:MP Query Script with players - [M]deLux - 11.11.2008

Quote:
Originally Posted by iMattâ„¢
I don't get what it is
The example link might help...


Re: [PHP] SA:MP Query Script with players - filipyoyo - 12.11.2008

i use php5

error

Code:
Server offline - buy a delux one next time
but server is online ;/


Re: [PHP] SA:MP Query Script with players - Marcel - 12.11.2008

Delux or someone else, could you guys please convert it to the xSocket format, it would be really cool to get stats of other servers ingame!


Re: [PHP] SA:MP Query Script with players - [M]deLux - 12.11.2008

Quote:
Originally Posted by filipyoyo
i use php5

error

Code:
Server offline - buy a delux one next time
but server is online ;/
make sure php is able to access external contents.

you might use the following sample script
Code:
<?php
fsockopen("delux-host.com", 80);
?>
Quote:
Originally Posted by Marcel
Delux or someone else, could you guys please convert it to the xSocket format, it would be really cool to get stats of other servers ingame!
im sorry, but i dont have time for such things at the moment. however what information do you wanna have, which you cant get via pawn?

ah and thanks westie for the history lesson


Re: [PHP] SA:MP Query Script with players - Marcel - 12.11.2008

I just want to receive the list of player names that are ingame. Now I'm only getting the amount of players ingame with xSocket


Re: [PHP] SA:MP Query Script with players - _GriLLeX_ - 14.11.2008

Error:
I have an error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /users/n/e/w/new-york-city-rp/public_html/samp_query.php on line 19