I Need Help With Job
#2

First off, this code is wrong:
pawn Код:
public TrashMasterCar(vehicleid)
{
    if(vehicleid == 408)
    {
        return 1;
    }
    return 1; // it will always return 1
}
It's meant to be:
pawn Код:
public TrashMasterCar(vehicleid)
{
    if(vehicleid == 408) return 1; // if vehicleid is 408 return 1 and exit the function
    return 0; // if not return 0 and exit the function
}
Second of all, use SetPlayerRaceCheckpoint and use the callback OnPlayerEnterRaceCheckpoint.
Reply


Messages In This Thread
I Need Help With Job - by Alex_Valde - 24.10.2010, 16:57
Re: I Need Help With Job - by Miguel - 24.10.2010, 17:09

Forum Jump:


Users browsing this thread: 2 Guest(s)