Quote:
Originally Posted by Carlton
pawn Код:
new PausedTimer;
public OnGameModeInit() { PausedTimer = SetTimer("CheckPaused", 1000, 1); return 1; }
forward CheckPaused(); public CheckPaused() { for(new o = 0; o < GetMaxPlayers(); o++ ){ if(GetPVarInt(o, "Paused") == 0) { // The player is paused / Pressed ESC. } } return 1; }
public OnPlayerConnect(playerid) { SetPVarInt(playerid, "Paused", 0); return 1; }
public OnPlayerUpdate(playerid) { SetPVarInt(playerid, "Paused", 1); return 1; }
|
I have 3 errors:
error 017: undefined symbol "SetPVarInt"
error 017: undefined symbol "GetPVarInt"
error 017: undefined symbol "SetPVarInt"
warning 204: symbol is assigned a value that is never used: "PausedTimer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.