Problem with linux
#1

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

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

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++)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)