help with timers
#1

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.
Reply
#2

You don't need the timera, and timerb.
Reply
#3

explain?
Reply
#4

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

change does not now function map

xD
Reply
#6

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

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

my English is bad sry
+ rep
Reply
#8

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!?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)