22.08.2015, 22:10
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; }