01.10.2012, 17:15
pawn Код:
new form[128];
new vehicle = GetPlayerVehicleID(i);
new Float: Speed;
Speed = GetSpeed(i);
if(!OutOfFuel[i])
{
if(Fuel[vehicle] <= 25)
{
if(EngineStatus[vehicle])
{
if(Speed > 0)
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Combustivel:~g~ %d%~n~~r~Gdeposito na reserva. ",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
}
else
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Combustivel:~g~ %d%~n~~r~deposito na reserva. ",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
}
else
{
if(EngineStatus[vehicle])
{
if(Speed > 0)
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Combustivel:~g~ %d%~n~~r~deposito na reserva. ",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
}
else
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Combustivel:~g~ %d%~n~~r~deposito na reserva. ",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
else
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~y~Motor desligado.~n~~w~Combustivel:~g~ %d% ",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
}
}
}
EDIT: JUST MOVE THE BRACKET beside "//here" a little bit to the right like other brackets