SA-MP Forums Archive
Problem with linux - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: Problem with linux (/showthread.php?tid=468775)



Problem with linux - cuemur - 10.10.2013

so.
we changed from hosting to vps
and now some commands don't work
my friend told that hosting where using debian
and now we are using linux..
and i found out that all commands and afk system is crashing because of for(new i=0; i<=GetMaxPlayers(); i++)
Here are the commands: https://sampforum.blast.hk/showthread.php?tid=468707
Afk system that is crashing http://paste.ofcode.org/hJMkTAtuEREmBeiuvSLBYc / http://www.bildites.lv/images/un9p9p77h7uov5lv2ywz.png


Re: Problem with linux - Khanz - 10.10.2013

Debian is Linux.
Just reinstall your current VPS with debian 7 32bit


Re: Problem with linux - Konstantinos - 10.10.2013

pawn Код:
for(new i=0; i<=GetMaxPlayers(); i++)
If MAX_PLAYERS is re-defined to the value of GetMaxPlayers, then it's going to give runtime errors about index out of bounds which will cause problems with the commands and they won't work.

pawn Код:
#include <a_samp>

#undef MAX_PLAYERS
#define MAX_PLAYERS 50
// An example ^ and GetMaxPlayers should be 50 as well.


// somewhere
for(new i=0; i<MAX_PLAYERS; i++)