Life raft help
#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


Messages In This Thread
Life raft help - by Haydz - 18.11.2010, 04:56
Re: Life raft help - by Retardedwolf - 18.11.2010, 05:00
Re: Life raft help - by Haydz - 18.11.2010, 05:09
Re: Life raft help - by Retardedwolf - 18.11.2010, 05:10
Re: Life raft help - by Haydz - 18.11.2010, 05:14

Forum Jump:


Users browsing this thread: 1 Guest(s)