[HELP]Adding FS to GM
#3

If you are entering the tanker (modelid 514) and you do not see the mission text, then troubleshoot your code backwards from that point onwards.

No text must mean PTruck = 0.

If PTruck = 0, then the player must not be in any of the Truck[] vehicles.

If you really think the player is in a Truck[] vehicle, then TruckmissionPlaying != 0 for that player.

To further debug your code, use the command print or printf to write variables to the server console so you can confirm what variables are set to. You can also use these commands to check which parts of your code are being executed, eg. ...

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate) {
    new vehicle = GetPlayerVehicleID(playerid);
    if(newstate == 2)
    {
        printf("player %d is a vehicle driver in OnPlayerStateChange", playerid);
        if(TruckmissionPlaying[playerid] == 0)
        {
            printf("player %d is not in a mission", playerid);
        }
    }
    return 1;
}
etc
Reply


Messages In This Thread
[HELP]Adding FS to GM - by Nightmare[TR] - 09.07.2010, 00:46
Re: [HELP]Adding FS to GM - by XtremePlanet - 09.07.2010, 08:12
Re: [HELP]Adding FS to GM - by Betamaster - 09.07.2010, 10:58
Re: [HELP]Adding FS to GM - by willsuckformoney - 09.07.2010, 11:47
Re: [HELP]Adding FS to GM - by Nightmare[TR] - 09.07.2010, 13:27

Forum Jump:


Users browsing this thread: 1 Guest(s)