Commands causes lag - crash
#5

Quote:
Originally Posted by Gogorakis
Посмотреть сообщение
Can you explain it further? I'm not really into scripting as I said..
This code causes the server to lag or crash.

pawn Код:
new rand = random(MAX_HOUSES - 1);
        while(!(HouseInfo[rand][hOwned] && HouseInfo[rand][hExteriorZ] <= 100 && HouseInfo[rand][hExteriorX] > -2802.389648 && HouseInfo[rand][hExteriorX] < -1400.710327 && HouseInfo[rand][hExteriorY] < 2800 && HouseInfo[rand][hExteriorY] > -216.298019)) {
            if(++rand >= MAX_HOUSES) {
                rand = 0;
            }
        }
Why are you trying to do within this loop?
Reply


Messages In This Thread
Commands causes lag - crash - by Gogorakis - 05.11.2015, 19:13
Re: Commands causes lag - crash - by Gogorakis - 06.11.2015, 21:32
Re: Commands causes lag - crash - by ThePhenix - 06.11.2015, 21:44
Re: Commands causes lag - crash - by Gogorakis - 06.11.2015, 22:00
Re: Commands causes lag - crash - by Patrick - 06.11.2015, 22:09

Forum Jump:


Users browsing this thread: 3 Guest(s)