15.11.2013, 20:48
Hello guys..i've been working on an engine system but i got this errors
hmm and the errors are :
line 1685: format(string, sizeof(string), "* %s inserts the key of their vehicle all the way into the ignition,turning the engine on ", GetName(playerid));
line 1695:format(string, sizeof(string), "* %s removes the key of their vehicle out of the ignition,turning the engine off ", GetName(playerid));
pawn Код:
CMD:e(playerid, params[])
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(playerid);
if(Engine[vehicle] == 0)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
Engine[vehicle] = 1;
SetVehicleParamsEx(vehicle, 1, lights, alarm, doors, bonnet, boot, 0);
new string[128]
[COLOR="Red"] format(string, sizeof(string), "* %s inserts the key of their vehicle all the way into the ignition,turning the engine on ", GetName(playerid));[/COLOR]
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if (Engine[vehicle] == 1)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
Engine[vehicle] = 0;
GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicle, 0, lights, alarm, doors, bonnet, boot, 0);
new string[128]
[COLOR="SeaGreen"]format(string, sizeof(string), "* %s removes the key of their vehicle out of the ignition,turning the engine off ", GetName(playerid));[/COLOR]
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You must be in the drivers seat of a vehicle.");
}
}
pawn Код:
C:\Users\dell\Desktop\Script\gamemodes\hrp.pwn(1685) : error 001: expected token: ";", but found "-identifier-"
C:\Users\dell\Desktop\Script\gamemodes\hrp.pwn(1695) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
line 1695:format(string, sizeof(string), "* %s removes the key of their vehicle out of the ignition,turning the engine off ", GetName(playerid));