My command causes crash D:
#1

pawn Код:
zcmd(lucasbag,playerid,params[])
{
    if(IsPlayerLuxAdminLevel(playerid, 4))
    {
        lucasbagtimer = SetTimer("lucasbag",60000,false);
        new AdminName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, AdminName, sizeof(AdminName));
        new string[64];
        format(string,sizeof(string),"~r~~Admin %s has launched Luca's bag on San Andreas! ETA: 60 seconds. THERE IS NO ESCAPE!~",AdminName);
        GameTextForAll(string, 10000, 5);
        return 1;
    }
    else return SendClientMessage(playerid,COLOR_RED,"ERROR:Only admins level 5 or above may use that command!");
}
public lucasbag()
{
    SetWeather(19);
    for(new players = 0; players <= MAX_PLAYERS; players++)
    {
      SetPlayerHealth(players, 0);
    }
    SetTimer("killlucasbag", 120000, false);
    return 1;
}
public killlucasbagtimer()
{
    SetWeather(0);
    KillTimer(lucasbagtimer);
    return 1;
}
What's causing it?
Oh, and if you're wondering why it's called lucasbag, thats because one of my friends at school has the biggest and heaviest bags you will ever see O_O
Reply


Messages In This Thread
My command causes crash D: - by biltong - 13.02.2010, 06:52
Re: My command causes crash D: - by [HiC]TheKiller - 13.02.2010, 06:58

Forum Jump:


Users browsing this thread: 1 Guest(s)