If you exit a vehicle, it cancels the job. (need help)
#9

Quote:
Originally Posted by Dr
Посмотреть сообщение
Use this:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(simplejobrunning[playerid] == 1)
    {
        simplejobrunning[playerid] = 0;
        SendClientMessage(playerid, COLOR_RED, "You're job was canceled due to exiting the Vehicle");
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Also make sure you replaced any:
pawn Код:
simplejobrunning
With:
pawn Код:
simplejobrunning[playerid]
Quote:

C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\SimpleJob.pwn(12) : error 010: invalid function or declaration
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\SimpleJob.pwn(116) : error 017: undefined symbol "simplejobrunning"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\SimpleJob.pwn(116) : warning 215: expression has no effect
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\SimpleJob.pwn(116) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\SimpleJob.pwn(116) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lucas\Desktop\Serverstuff\MyTestServerV1. 0\filterscripts\SimpleJob.pwn(116) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

I get those errors.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)