Life raft help
#1

fixed..

8char
Reply
#2

isPlayerInAnyVehicle
Reply
#3

would this work?
Error:
pawn Код:
C:\Documents and Settings\Hayden Bruin\Desktop\UlitmateDM\gamemodes\SAP.pwn(2293) : error 029: invalid expression, assumed zero
pawn Код:
COMMAND:liferaft(playerid, params[])
{
    new Float:health;
    new veh;
    veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
    if(IsPlayerInAnyVehicle(playerid)) else SendClientMessage(playerid, COLOR_RED,"You need to be in a plane to deploy the liferafts");
    if(health >500) return SendClientMessage(playerid,COLOR_RED,"You can only spawn the life raft when you're in an emergency");
    SendClientMessage(playerid,COLOR_GREEN,"Liferafts deployed");
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    CreateVehicle(473, x, y, z-5, 82.2873, 0, 1, 59);
    return 1;
}
Reply
#4

Which line is that? (2293)
Reply
#5

line 2293
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) else SendClientMessage(playerid, COLOR_RED,"You need to be in a plane to deploy the liferafts");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)