20.06.2009, 06:44
Hi i have managed, with the help of some of you, to set up checkpoints for trucking missions. I have tried to code it so that you can only enter the check point when you have got a trailer. But when ever i enter checkpoint, with or without tralier, the server crashes. Here is my code.
Thanks in advance,
Josh
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if (IsTrailerAttachedToVehicle(515) == true)
{
SendClientMessage(playerid, 0xAFAFAFAA, " Congratulations!");
}
else {
SendClientMessage(playerid, 0xAFAFAFAA, "you need a trailer");
}
return 1;
}
Josh

