#1

So i have been FAILING these days, I have a bonus zone timer, and my server keeps shutting down for no reason in my friend's VPS, Don't you think it's because of it?

Can someone tell me if i scripted it wrong which causes a lot of troubles with in the VPS?

PHP код:

#define MAX_WAR 100
new SpecialZone[MAX_WAR];
stock AvailableZone(id)
{
    switch(
id)
    {
        case 
SnakeFarmCiaHeadquartersCluckinBellPetrolStationBaitShopRanchRadarBaseOilDepotQuarryTheBigSpreadRanch: return 1;
    }
    return 
0;
}
public 
SpecialTimer()
{
    new 
random(MAX_WAR+1);
    new 
string[128];
    
    if(
AvailableZone(i) == 1)
    {
        if(
SpecialZone[i] == 0)
        {
            
format(stringsizeof(string), "* Zone %s is now a bonus zone, Capture it to get a special/additional rewards."GetZoneName(i));
            
SendClientMessageToAll(COLOR_PINKstring);
            
SpecialZone[i] = 1;
            print(string);
        }
        else
        {
            
format(stringsizeof(string), "* Zone %s is no longer a bonus zone, It will be replaced in the next 3 minutes."GetZoneName(i));
            
SendClientMessageToAll(COLOR_PINKstring);
            
SpecialZone[i] = 0;
            print(string);
        }
    }
    else
    {
        
SpecialTimer();
    }
    return 
1;

Reply


Messages In This Thread
Zone - by JaKe Elite - 23.03.2015, 06:53
Re: Zone - by Gammix - 23.03.2015, 07:41
Re: Zone - by JaKe Elite - 23.03.2015, 07:49
Re: Zone - by Gammix - 23.03.2015, 07:54
Re: Zone - by JaKe Elite - 23.03.2015, 08:20
Re: Zone - by Neufox - 23.03.2015, 08:25
Re: Zone - by Gammix - 23.03.2015, 09:40
Re: Zone - by JaKe Elite - 23.03.2015, 10:30
Re: Zone - by Neufox - 23.03.2015, 10:33
Re: Zone - by JaKe Elite - 23.03.2015, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)