Server freezes - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server freezes (
/showthread.php?tid=395277)
Server freezes -
Casamiro - 25.11.2012
Hello!
When i set some variable value to 0 / false, the server freezes. No more connections, no more player movements, no more chat messages, no more row on log, etc. The variable declarations:
Код:
new KitNez[MAX_PLAYERS];
new bool: ElsoBelepes[MAX_PLAYERS];
new bool: EloEmber[MAX_PLAYERS];
new bool: Meghalt[MAX_PLAYERS];
And the value setting:
Код:
EloEmber[playerid] = true;
Meghalt[playerid] = false;
ElsoBelepes[playerid] = true;
KitNez[playerid] = 0;
If I put this code under OnPlayerConnect callback, the server freezes when the first player connecting, it says connected joining the game, and writes into the log incoming connection: ... ,but that's all. Can anybody help please?
Thanks for advance.
PS: Sorry for my bad English.
Re: Server freezes -
[D]ry[D]esert - 25.11.2012
may you show us your OnPlayerConnect ?
Re: Server freezes -
Casamiro - 25.11.2012
Problem fixed, it caused by NPCs.