IsPlayerInPlane
#9

pawn Код:
#include <a_samp>
#include <a_colors>
#include <JunkBuster>

public OnGameModeInit()
{
    SetTimer("CheckAircrafts", 500, true);
    return 1;
}

forward CheckAircrafts();
public CheckAircrafts()
{
    for(new i=0; i<GetMaxPlayers(); i++)
    {
        if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
        {
            if(IsAFlyingVehicle(GetPlayerVehicleID(playerid)))
            {
                new Float:hp;
                GetVehicleHealth(GetPlayerVehicleID(playerid), hp);
                if(hp < 450)
                {
                    GameTextForPlayer(playerid, 3, 10000, "~R~CRITICAL FAILURE!");
                    SendClientMessage(playerid, COLOR_RED, "ENGINE FAILURE! MAKE AN ERMGENCY LANDING WITH /ELAND!")
                }
            }
        }
    }
    return 1;
}

stock IsAFlyingVehicle(vehicleid)
{
  switch(GetVehicleModel(vehicleid))
  {
    case
        460,464,476,511,512,513,519,520,553,577,592,593,//flying vehicle models
        417,425,447,465,469,487,488,497,501,548,563:
    return true;
  }
  return false;
}
=

Код:
C:\Documents and Settings\Ed\My Documents\SAMP Server TKFS\filterscripts\EWS.pwn(18) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Ed\My Documents\SAMP Server TKFS\filterscripts\EWS.pwn(21) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Ed\My Documents\SAMP Server TKFS\filterscripts\EWS.pwn(24) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Ed\My Documents\SAMP Server TKFS\filterscripts\EWS.pwn(25) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Wtf?

Thanks for the code to! Mine was filled with so many more errors.
Reply


Messages In This Thread
Wtf, undefined symbol "playerid"? - by Odyssey - 21.05.2011, 18:14
Re: IsPlayerInPlane - by Steven82 - 21.05.2011, 18:19
Re: IsPlayerInPlane - by Stigg - 21.05.2011, 18:23
Re: IsPlayerInPlane - by Patrik356b - 21.05.2011, 18:24
Re: IsPlayerInPlane - by Steven82 - 21.05.2011, 18:27
Re: IsPlayerInPlane - by Odyssey - 21.05.2011, 18:29
Re: IsPlayerInPlane - by xalith - 21.05.2011, 19:27
Re: IsPlayerInPlane - by Sascha - 21.05.2011, 19:35
Re: IsPlayerInPlane - by Odyssey - 22.05.2011, 10:18
Re: IsPlayerInPlane - by Steve M. - 22.05.2011, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)