18.11.2010, 04:56
(
Последний раз редактировалось Haydz; 18.11.2010 в 06:15.
)
fixed..
8char
8char
C:\Documents and Settings\Hayden Bruin\Desktop\UlitmateDM\gamemodes\SAP.pwn(2293) : error 029: invalid expression, assumed zero
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;
}
if(IsPlayerInAnyVehicle(playerid)) else SendClientMessage(playerid, COLOR_RED,"You need to be in a plane to deploy the liferafts");