21.07.2016, 11:10
Hi guys need help. Got unknown errors. Here's the errors
Here are the lines
6669
15053
PHP код:
(6669) : error 029: invalid expression, assumed zero
(6669) : warning 215: expression has no effect
(6669) : error 001: expected token: ";", but found "if"
(15053) : error 029: invalid expression, assumed zero
(15053) : warning 215: expression has no effect
(15053) : error 001: expected token: ";", but found "if"
(15053) : error 036: empty statement
(15053) : fatal error 107: too many error messages on one line
6669
PHP код:
else if(IsAnAmbulance(vehicleid))
{
if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
if(LSFMDVehicles[13] == vehicleid && PlayerInfo[playerid][pRank] < 5)
{
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "Only ranks 5+ can drive this vehicle.");
}
}
PHP код:
else if(IsAnAmbulance(vehicleid));
{
if(PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
{
if(LSFMDVehicles[13] == vehicleid && PlayerInfo[playerid][pRank] < 5)
{
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
NOPCheck(playerid);
SendClientMessageEx(playerid, COLOR_GRAD2, "Only ranks 5+ can drive this vehicle.");
}
}
else
{
SendClientMessageEx(playerid,COLOR_GREY," You are not in the LSFMD!");
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz);
NOPCheck(playerid);
}
}