Help with A Truck
#2

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(IsPlayerInVehicle(playerid, 455))
        {
        DisablePlayerCheckpoint(playerid);
    new currentveh;
    currentveh = GetPlayerVehicleID(playerid);
        DestroyVehicle(currentveh);
        GivePlayerMoney(playerid, 2500);
        GameTextForPlayer(playerid, "~w~You completed you'r job!  Goto Truck ~b~HQ ~w~to Do Another!", 8000, 3);
        SendClientMessage(playerid, COLOR_AQUA, "For Completing your job you recieved a payback of 2500$ !")
        }  <==== ERROR REFERS TO THIS LINE !
    return 1;
}
pawn Код:
C:\DOCUME~1\User01\Desktop\samp02Xserver.win32\gamemodes\TestersGamemode.pwn(849) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
1. Most of the time when an error is reported at line# the error is in the line just above it.

2. The error is telling you in plain old english your missing a ;

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
  if(IsPlayerInVehicle(playerid, 455))
  {
    DisablePlayerCheckpoint(playerid);
    new currentveh;
    currentveh = GetPlayerVehicleID(playerid);
    DestroyVehicle(currentveh);
    GivePlayerMoney(playerid, 2500);
    GameTextForPlayer(playerid, "~w~You completed you'r job!  Goto Truck ~b~HQ ~w~to Do Another!", 8000, 3);
    SendClientMessage(playerid, COLOR_AQUA, "For Completing your job you recieved a payback of 2500$ !"); <==== HERE !
  }
  return 1;
}
Reply


Messages In This Thread
Help with A Truck - by Static_X - 10.02.2009, 17:47
Re: Help with A Truck - by ShizNator - 10.02.2009, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)