31.10.2018, 08:46
I found tutorial for counting, but i have errors
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); } } |
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. |