#1

*
Reply
#2

Код:
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,KNOWNCOLOR_WHITE,"You have to be inside a vehicle.");
else
{
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
return SendClientMessage(playerid,KNOWNCOLOR_WHITE,"Vehicle Fixed.");
return 1;
}

}
Reply
#3

Quote:
Originally Posted by mavtias
Код:
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,KNOWNCOLOR_WHITE,"You have to be inside a vehicle.");
else
{
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
return SendClientMessage(playerid,KNOWNCOLOR_WHITE,"Vehicle Fixed.");
return 1;
}

}
Fixed it, Don't use return more than once
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)