Cods fail help
#8

Firstly, look what Vince said.
You are checking if vehicle ID is 425 AND 520 (&&), and that's impossible.
You have to check if vehicle ID is 425 OR 520(||).

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_YES))
{
new vid = GetPlayerVehicleID(playerid);
new Float:hp;
GetVehicleHealth(vid, hp);
if(vid == 425 || vid == 520 && hp < 251)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y , Z + 40);
SendClientMessage(playerid, RED, "Ejected!");
}
}
return 1;
}
Reply


Messages In This Thread
Cods fail help - by Ryz - 13.10.2014, 16:58
Re: Cods fail help - by Chenko - 13.10.2014, 17:20
Re: Cods fail help - by Ryz - 13.10.2014, 17:40
Re: Cods fail help - by Chenko - 13.10.2014, 18:13
Re: Cods fail help - by Thanos1997 - 13.10.2014, 18:13
Re: Cods fail help - by Vince - 13.10.2014, 18:29
Re: Cods fail help - by Ryz - 14.10.2014, 14:00
Re: Cods fail help - by zaibaslr2 - 14.10.2014, 14:04
Re: Cods fail help - by Ryz - 14.10.2014, 14:28
Re: Cods fail help - by zaibaslr2 - 14.10.2014, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)