22.08.2015, 19:17
(
Последний раз редактировалось DerickClark; 22.08.2015 в 19:52.
)
Код:
(1427) : error 029: invalid expression, assumed zero (1427) : warning 215: expression has no effect (1427) : error 001: expected token: ";", but found "if" (1427) : error 001: expected token: "*then", but found ")" (1427) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
if (IsPlayerInAnyVehicle(playerid) == 0) && if IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) == 0){
Код:
forward TruckCheck(playerid); public TruckCheck(playerid) { if (IsPlayerInAnyVehicle(playerid) == 0) && if IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)) == 0){ 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, 3000, 3); PlayerPlaySound(playerid,1055,0.0,0.0,0.0); if (truckTime[playerid] >= 30) { // Do stuff here truckTime[playerid] = 0; KillTimer(truckchecktime); StopPlayerJob(playerid); SendClientMessage(playerid, COLOR_LIGHTGREEN, "You failed the mission!"); } return 1; } return 0; }