when i try to kill a timer i get errors?
#1

pawn Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SA-MPS~1\GAMEMO~1\COPSAN~1.pwn(1912) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

Can i see the script please.
Reply
#3

for your timer do it like this:

pawn Код:
new timer; //define timer

public OnGameModeInit()
{
    timer = SetTimer(bla, 3000, true); //Setting the timer for bla but defined as timer.
    return 1;
}


public bla() //What the timer does
{
    return 1;
}

public Whatever()
{
    KillTimer(timer); //When you want it to be killed use this
    return 1;
}
Reply
#4

Try changing this:
pawn Код:
timer = SetTimer(bla, 3000, true); //Setting the timer for bla but defined as timer.
With this:
pawn Код:
timer = SetTimer("bla", 3000, true); //Setting the timer for bla but defined as timer.
Reply
#5

Well I was just using a very rough example for him to change his timer. I'm sure he can figure it out.
Reply
#6

Show line 1912 and everything around it.
Reply
#7

you mean you want to spectate the player that killed you?! if so i can help you now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)