Quote:
Originally Posted by Criss_Angel
pawn Код:
If(GetPlayerVehicleID) == Testcar1 || Testcar2 || Testcar3|| { SetCheckpointForPlayer(Checkpointid == ur checkpoint); }
you have to make the checckpoints aswell!
|
That wouldn't work. Because you can't close with "||", "If(GetPlayerVehicleID)" is an invalid function, "if" has to start with a non-capital letter, and "SetCheckpointForPlayer" is an invalid function too. But this should work:
pawn Код:
if(GetPlayerVehicleID(playerid) == Testcar1 || Testcar2 || Testcar3)
{
SetPlayerCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size);
return 1;
}