[Tool/Web/Other] [PHP] SA:MP Query Script with players
#1

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

That rocks! Good work
Reply
#3

Thanks Lukas
Reply
#4

woot ty ty ty!
Reply
#5

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;
Reply
#6

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

thats great deluxe, very well done!
Reply
#8

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

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

thats not a nice way to tell this, but however
Reply
#10

any screen ?
Reply
#11

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

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

Good script.
Reply
#14

I don't get what it is
Reply
#15

Quote:
Originally Posted by iMatt™
I don't get what it is
The example link might help...
Reply
#16

i use php5

error

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

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!
Reply
#18

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

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

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

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)