SetTimerEx problem
#1

Yo,

This is what I have in my code, under OnPlayerKeyStateChange.

pawn Код:
SetTimerEx("pause", 5000, false, "d", playerid);
This is the public in response to that timer (it's forwarded):

pawn Код:
public pause()
{
    PlayerInfo[playerid][Pause] = 0;
    print("Pausetimer ended()");
}
I get this error within the public pause():
Quote:

error 017: undefined symbol "playerid"

Any ideas? Thank you!
Reply
#2

must be

PHP код:
forward pause(playerid);
public 
pause(playerid)
{
    
PlayerInfo[playerid][Pause] = 0;
    print(
"Pausetimer ended()");

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)