C:\Users\Home\Desktop\Redemption Roleplay v1.0\gamemodes\RMRP.pwn(34387) : warning 217: loose indentation
CMD:eon(playerid, params[]) { new giveplayerid; new string[128]; new engine,lights,alarm,doors,bonnet,boot,objective,vehicleid; vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessageEx(playerid,COLOR_WHITE,"This command can't be used in this vehicle."); GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); if(engine == VEHICLE_PARAMS_ON) { SetVehicleEngine(vehicleid, playerid); format(string, sizeof(string), "* %s spins a key and turn the vehicle engine off to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if((engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET)) { format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessageEx(playerid, TEAM_GROVE_COLOR, "Vehicle engine starting"); SetTimerEx("SetVehicleEngine", 1000, 0, "dd", vehicleid, playerid); } return 1;
if(x=y)
{
SendClientMessage(playerid, COLOR_GREY, "hello");
return 1;
}
if(x=y)
{
SendClientMessage(playerid, COLOR_GREY, "hello");
return 1;
}
CMD:eon(playerid, params[])
{
new
giveplayerid,
string[128],
engine,
lights,
alarm,
doors,
bonnet,
boot,
objective,
vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510)
return SendClientMessageEx(playerid,COLOR_WHITE,"This command can't be used in this vehicle.");
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == VEHICLE_PARAMS_ON)
{
SetVehicleEngine(vehicleid, playerid);
format(string, sizeof(string), "* %s spins a key and turn the vehicle engine off to %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if((engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET))
{
format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SendClientMessageEx(playerid, TEAM_GROVE_COLOR, "Vehicle engine starting");
SetTimerEx("SetVehicleEngine", 1000, 0, "dd", vehicleid, playerid);
}
return 1;
}
That's just because your formatting is horrible.
pawn Код:
pawn Код:
|