23.12.2014, 17:06
@ # 2 - I try to keep the amount of includes needed to a minimum, and keep it simple / straight-forward.
In regards to your next point; things like YSF can change the amount of max players; and therefore GetMaxPlayers won't return the value from the server.cfg file, - thats what this function does. And using format I thought would just be easier since I am formatting a string. Maybe I'll try using strcpy next time.
NOTE: If you wish to host the GetIP page on your own host; just copy the code, and make a PHP page with said code. Then change the link in the include, and you're good to go.
In regards to your next point; things like YSF can change the amount of max players; and therefore GetMaxPlayers won't return the value from the server.cfg file, - thats what this function does. And using format I thought would just be easier since I am formatting a string. Maybe I'll try using strcpy next time.
NOTE: If you wish to host the GetIP page on your own host; just copy the code, and make a PHP page with said code. Then change the link in the include, and you're good to go.