public OnPlayerEnterCheckpoint(playerid) { new string[256]; new playername [MAX_PLAYER_NAME]; GetPlayerName (playerid, playername, sizeof(string)); if(gTeam[playerid] == TEAM_GREEN) { format (string, sizeof(string), "Server: %s (%d) is now planting bomb by the big transmitor!", playername, playerid); SendClientMessageToAll (ORANGE, string); SetTimer ("Disable", 10000, false); } else if(gTeam[playerid] == TEAM_BLUE) { SendClientMessage (playerid, RED, "Error: Protect your transmitor!"); } return; }
forward Disable(); public Disable() { DisablePlayerCheckpoint (playerid); }
I:\[0.2] Mini Missions Reborn\World war 3\gamemodes\TransmitorVillage.pwn(199) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
Originally Posted by Ironboy500
Код:
SetTimer ("Disable", 10000, false); |
SetTimerEx("Disable", 10000, false, "i", playerid);
Originally Posted by Ironboy500
Код:
forward Disable(); public Disable() { DisablePlayerCheckpoint (playerid); } |
forward Disable(playerid); public Disable(playerid) { DisablePlayerCheckpoint(playerid); }
forward Disable(playerid);
public Disable(playerid)
{
DisablePlayerCheckpoint(playerid);
}