12.03.2015, 19:09
Hi, I was actually doing some updating GM? And when i compile a receive this:
This is the script:
Код:
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : warning 217: loose indentation C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : error 029: invalid expression, assumed zero C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : error 029: invalid expression, assumed zero C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
This is the script:
Код:
Convoy_PlayerAllowed(playerid) { // Make sure that the leader is a trucker if (APlayerData[playerid][PlayerClass] == ClassTruckDriver) { // Check if the player isn't a member of a convoy already if (APlayerData[playerid][InConvoy] == false) { // Make sure that the player hasn't started a job if (APlayerData[playerid][JobStarted] == false) return true; // The player is allowed to create or join a convoy } else SendClientMessage(playerid, 0xFFFFFFFF, TXT_CannotJoinJobStarted); } else SendClientMessage(playerid, 0xFFFFFFFF, TXT_ConvoyAllreadyJoined); } else SendClientMessage(playerid, 0xFFFFFFFF, TXT_ConvoyNeedsTruckerClass); // If any condition wasn't true, the player isn't allowed to create or join a convoy return false; }