SA-MP in PHP.
#1

How do I add my Server Information to my script?

Like this:

Here

With player names and things like that?
Reply
#2

I'm sure MYSQL and PHP skills are needed, that is all I know.
Reply
#3

I've got both of them. I've just never really worked with them together.
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=159785
Reply
#5

Ooo, Thank you Kitten! Repped
Reply
#6

There's no need to do it using MySQL. Westie has provided an API for what I can see in the site (it will also provide player ids, names, pings and scores with less than 128 players online).
Reply
#7

Quote:
Originally Posted by AndreT
Посмотреть сообщение
There's no need to do it using MySQL. Westie has provided an API for what I can see in the site (it will also provide player ids, names, pings and scores with less than 128 players online).
Yeah that would be great if the links were actually up mysql is a better way to do it if you know how to use mysql and have php skills.
Reply
#8

Quote:
Originally Posted by Kitten
Посмотреть сообщение
Yeah that would be great if the links were actually up mysql is a better way to do it if you know how to use mysql and have php skills.
In a point of the samp-server's performance it's actually better to use a API for the PHP instead of using MYSQL to save who's online. Using MySQL means large traffic between website <-> sa:mp server and if anything is wrong with the Database Code you can have a risk of being SQLi-owned.

If the links are down try using one of my old scripts to retrieve server info:
php.zip
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)