SA-MP Forums Archive
help with timers - 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: help with timers (/showthread.php?tid=359880)



help with timers - adrianxd - 15.07.2012

help with this pls

pawn Код:
new Timera;
new Timerb;
in public OnGameModeInit()

pawn Код:
public OnGameModeInit()
{
     Timera = SetTimer("Next",270000,false);
     Timerb = SetTimer("Explode",7000,false);
return 1;
}
in the publics

pawn Код:
forward Exploded(playerid);
public Exploded(playerid)
{
    SendClientMessageToAll(COLOR_GREEN, "The bom has been armed, everything is going to explode in 30 seconds!!");
    SendClientMessageToAll(COLOR_YELLOW, "Loading next map wait!");
    KillTimer(Timer2);
    return 1;
}
forward Next(playerid);
public Next(playerid)
{
    SendClientMessageToAll(COLOR_YELLOW, "Loading next map wait!");
    return 1;
}
when compiling

pawn Код:
C:\Users\Adrian\Downloads\server 3\gamemodes\gangwars.pwn(214) : warning 204: symbol is assigned a value that is never used: "Timerb"
C:\Users\Adrian\Downloads\server 3\gamemodes\gangwars.pwn(224) : warning 204: symbol is assigned a value that is never used: "Timera"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.



Re: help with timers - Glint - 15.07.2012

You don't need the timera, and timerb.


Respuesta: help with timers - adrianxd - 15.07.2012

explain?


Re: help with timers - GSRP - 15.07.2012

Under "OnGameModeInit()"
pawn Код:
SetTimer("Next",270000,false);
SetTimer("Explode",7000,false);
Remove:
pawn Код:
KillTimer(Timer2);
Done.


Respuesta: help with timers - adrianxd - 15.07.2012

change does not now function map

xD


Re: Respuesta: help with timers - GSRP - 15.07.2012

Quote:
Originally Posted by adrianxd
Посмотреть сообщение
change does not now function map

xD
Huh? I cannot understand what you are saying there...


Respuesta: help with timers - adrianxd - 15.07.2012

my English is bad sry
+ rep


Re: Respuesta: help with timers - GSRP - 15.07.2012

Quote:
Originally Posted by adrianxd
Посмотреть сообщение
my English is bad sry
+ rep
Ahh. So it is fixed you're saying?

This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds. <-- REALLY!?