Jim_Tawer
Умник
Ошибки
Строка на которой ошибка
Весь код
PHP:
C:\Users\Home\Desktop\ONLY — ñ õîñòèíãà ORIG\gamemodes\new.pwn(13725) : warning 213: tag mismatch
C:\Users\Home\Desktop\ONLY — ñ õîñòèíãà ORIG\gamemodes\new.pwn(13725) : error 001: expected token: ",", but found "["
C:\Users\Home\Desktop\ONLY — ñ õîñòèíãà ORIG\gamemodes\new.pwn(13725) : error 029: invalid expression, assumed zero
C:\Users\Home\Desktop\ONLY — ñ õîñòèíãà ORIG\gamemodes\new.pwn(13725) : warning 215: expression has no effect
C:\Users\Home\Desktop\ONLY — ñ õîñòèíãà ORIG\gamemodes\new.pwn(13725) : error 001: expected token: ";", but found "]"
C:\Users\Home\Desktop\ONLY — ñ õîñòèíãà ORIG\gamemodes\new.pwn(13725) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.10.4 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP:
PlayerTextDrawHide ( playerid, speed_TD [ playerid ] [ 23 ] ) ;
PHP:
stock toggle_engine ( playerid, vid )
{
/* new Float:veh_health ;
GetVehicleHealth ( vid, veh_health ) ;
if ( veh_health < 350 )
{
SendClientMessage ( playerid, col_gray, " Транспорт сильно повреждён, запустить двигатель не удалось!" ) ;
return 1 ;
}*/
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx ( vid, engine, lights, alarm, doors, bonnet, boot, objective ) ;
if ( engine == VEHICLE_PARAMS_UNSET || engine == VEHICLE_PARAMS_OFF )
{
if ( veh_info [ vid - 1 ] [ v_fuel ] < 1 )
{
SendClientMessage ( playerid, col_white, "{"#cRD"}* {"#cGR"}У Вас закончилось топливо в автомобиле. Используйте {"#cWH"}'/service' {"#cGR"}чтобы вызвать механика!" ) ;
return SetVehicleParamsEx ( vid, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective ) ;
}
else SetVehicleParamsEx ( vid, VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective ) ;
me_action( playerid, "завел(а) двигатель." ) ;
PlayerTextDrawHide ( playerid, speed_TD [ playerid ] [ 23 ] ) ;
PlayerTextDrawColor(playerid, speed_TD [ playerid ] [ 23 ], 8388863 ) ;
PlayerTextDrawShow ( playerid, speed_TD [ playerid ] [ 23 ] ) ;
}
else
{
SetVehicleParamsEx ( vid, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective ) ;
me_action( playerid, "заглушил(а) двигатель." ) ;
PlayerTextDrawHide ( playerid, speed_TD [ playerid ] [ 23 ] ) ;
PlayerTextDrawColor(playerid, speed_TD [ playerid ] [ 23 ], -1523963137 ) ;
PlayerTextDrawShow ( playerid, speed_TD [ playerid ] [ 23 ] ) ;
}
return 1 ;
}
Последнее редактирование:
