Count Down Timer
#6

Line 1499:
Код:
{
Код:
  if (!IsPlayerInAnyVehicle(playerid) && !IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))
		{
Код:
(1499) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
public TruckCheck(playerid)
{
        if (!IsPlayerInAnyVehicle(playerid) && !IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))
		{
                truckTime[playerid]++;
                new str[128];
                format(str, sizeof(str), "Get back in your truck! ~n~or ~n~ Reconnect your trailer! ~n~(%d)", 30 - truckTime[playerid]);
                GameTextForPlayer(playerid, str, 1000, 3);
                PlayerPlaySound(playerid,1055,0.0,0.0,0.0);
                if (truckTime[playerid] >= 30) {
                    // Do stuff here

                    truckTime[playerid] = 0;
                    KillTimer(truckchecktime);
                    StopPlayerJob(playerid);
                    //format(str, sizeof(str), "");
                    //GameTextForPlayer(playerid, str, 0, 3);
                    SendClientMessage(playerid, COLOR_LIGHTGREEN, "You failed the mission!");

                }
                return 1;
        }
        return 0;
}
Reply


Messages In This Thread
Count Down Timer - by DerickClark - 22.08.2015, 18:40
Re: Count Down Timer - by thaKing - 22.08.2015, 19:11
Re: Count Down Timer - by DerickClark - 22.08.2015, 19:17
Re: Count Down Timer - by DerickClark - 22.08.2015, 21:10
Re: Count Down Timer - by Roberto80 - 22.08.2015, 22:04
Re: Count Down Timer - by DerickClark - 22.08.2015, 22:10
Re: Count Down Timer - by thaKing - 22.08.2015, 22:44
Re: Count Down Timer - by DerickClark - 22.08.2015, 22:46
Re: Count Down Timer - by thaKing - 22.08.2015, 22:50
Re: Count Down Timer - by DerickClark - 22.08.2015, 23:05

Forum Jump:


Users browsing this thread: 3 Guest(s)