Format issues. -
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.");
}
}
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));
Re: Format issues. -