Timer
#1

I found tutorial for counting, but i have errors

Quote:

public CountDown()
{
countvar--;
new str[128];
if(countvar == 0)
{
KillTimer(CountDownTimer);
countvar = 4;
}
else
{
format(str, sizeof(str), "%d", CountDownTimer);
GameTextForAll(str, 1000, 1);
}

}

ERRORS:
Quote:

C:\Users\Nerijus\Desktop\NevLocus\gamemodes\garza. pwn(2159) : error 022: must be lvalue (non-constant)
C:\Users\Nerijus\Desktop\NevLocus\gamemodes\garza. pwn(2159) : warning 215: expression has no effect
C:\Users\Nerijus\Desktop\NevLocus\gamemodes\garza. pwn(2161) : error 033: array must be indexed (variable "countvar")
C:\Users\Nerijus\Desktop\NevLocus\gamemodes\garza. pwn(2164) : error 033: array must be indexed (variable "countvar")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply


Messages In This Thread
Timer - by Heress - 31.10.2018, 08:46
Re: Timer - by DaniceMcHarley - 31.10.2018, 08:51
Re: Timer - by Heress - 31.10.2018, 08:57
Re: Timer - by ReD_HunTeR - 31.10.2018, 09:02
Re: Timer - by Heress - 31.10.2018, 09:03
Re: Timer - by IceBilizard - 31.10.2018, 09:03
Re: Timer - by TheToretto - 31.10.2018, 09:18
Re: Timer - by Heress - 31.10.2018, 09:26
Re: Timer - by TheToretto - 31.10.2018, 09:29
Re: Timer - by Heress - 31.10.2018, 09:44
Re: Timer - by TheToretto - 31.10.2018, 10:10
Re: Timer - by Heress - 31.10.2018, 10:45
Re: Timer - by Heress - 31.10.2018, 10:48
Re: Timer - by TheToretto - 31.10.2018, 11:01
Re: Timer - by Heress - 31.10.2018, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)