Random Fires script = fail.
#1

Under OnGameModeInit
pawn Код:
// Fire Explosions
    SetTimer("OnBurgerExplosion", 1000000, true);
for the other timers, and explosions
pawn Код:
public OnBurgerExplosion(playerid)
{
    format(szMessage, sizeof(szMessage), "DISPATCH: We need dispatch at Main Street, Burger Shot. Flames are blazing, careful!");
    SendToGroupType(4, COLOR_RED, szMessage);
    SendToGroupType(1, COLOR_RED, szMessage);
    OnBurgerExplosion98 = SetTimer("OnBurgerExplosion2", 3000, true);
    return 1;
}

public OnBurgerExplosion2(playerid)
{
    CreateExplosion(-174.3882,1065.7659,19.7422, 2, 50.0);
    CreateExplosion(-169.6261,1088.7214,19.7422, 2, 50.0);
    OnBurgerExplosionStop99 = SetTimer("OnBurgerExplosionStop", 300000, true);
    return 1;
}

public OnBurgerExplosionStop(playerid)
{
    KillTimer(OnBurgerExplosion98);
    KillTimer(OnBurgerExplosionStop99);
    return 1;
}
See, it all works the first time. but the times after it doesn't... Anyone have any ideas on how to fix it, I have a feeling that KillTimer is affecting it.. But idk

And if you help me, how would I add MORE and MORE random fires you know?
Reply


Messages In This Thread
Random Fires script = fail. - by Swyft™ - 27.10.2012, 18:07
Re: Random Fires script = fail. - by Swyft™ - 27.10.2012, 19:44
Re: Random Fires script = fail. - by Swyft™ - 27.10.2012, 20:11
Re: Random Fires script = fail. - by Catalyst- - 27.10.2012, 21:06
Re: Random Fires script = fail. - by Swyft™ - 27.10.2012, 21:22
Re: Random Fires script = fail. - by Catalyst- - 27.10.2012, 21:23
Re: Random Fires script = fail. - by Swyft™ - 27.10.2012, 21:25
Re: Random Fires script = fail. - by Catalyst- - 27.10.2012, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)