Quote:
Originally Posted by [B2K
Hustler ]
I didn't use the line you gave but something simple like this?
pawn Код:
#define MAX_NUMBER 200 //change to the max number so number starts recounting from 0 new Number = 0;
SetTimer("IncreaseNumber",1000, true);
public IncreaseNumber() { if(Number >= MAX_NUMBER)Number = 0; else Number++; }
|
It doesn't work :\
I use it like this:
pawn Код:
#define MAX_TIMER 200
new TutTime = 0;
new TimerOfTut; //For killing timer when tutorial is ended
public TutTimer()
{
if(TutTime >= MAX_TIMER)TutTime = 0;
else TutTime++;
}
TimeOfTut = SetTimer("TutTimer",1000,true); // I tried without TimeOfTut - still doesn't work
if (TutTime == 0)
{
SystemMsg(playerid,"Welcome to San Fierro!");
}
if (TutTime == 7)
{
SystemMsg(playerid," ");
SystemMsg(playerid," ");
}
if (TutTime == 10)
{
SystemMsg(playerid,"This is a RolePlay server which means you have to act like in real life.");
KillTimer(TimerOfTut);
}
What's wrong with this.....
(It compiles without errors....)