Detaljan opis problema: Izbacuje mi waring na jednoj liniji kreiro sam new vozilo ali opet izbacuje.
C:\Users\Bosna\Contacts\Desktop\Rage Gaming RolePlay 0.3z Client\gamemodes\RGRP.pwn(5857) : warning 217: loose indentation
C:\Users\Bosna\Contacts\Desktop\Rage Gaming RolePlay 0.3z Client\gamemodes\RGRP.pwn(5865) : warning 217: loose indentation
C:\Users\Bosna\Contacts\Desktop\Rage Gaming RolePlay 0.3z Client\gamemodes\RGRP.pwn(5881) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
Dio skripte:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vozilo = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i = 0; i < sizeof(VoziloInfo); i++)
{
if(VoziloInfo == vozilo)
{
new cena = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
if(VoziloInfo == 0)
{
new string;
SCM(playerid,-1,""CRVENA"Polovan auto na prodaju"BELA" | "ZELENA"/kupiauto"BELA" | "ZELENA"/izlaz");
format(string, sizeof(string), ""CRVENA"Cena: "BELA"%d$ | "CRVENA"Model: "BELA"%s",AutoSalon/2, Vehicles[GetVehicleModel(vozilo) - 400]);
UsaoAutoProdaja = i; TogglePlayerControllable(playerid, 0);
SCM(playerid, -1, string);
return 1;
}
}
}
}
if(BiciklaRent(vozilo))
{
if(Rentano != vozilo)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,"~w~Mozete rentati ovo biciklo ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~30$",5000,3);
}
}
if(MotoRent(vozilo))
{
if (Rentano != vozilo)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,"~w~Mozete rentati ovaj motor ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~80$",5000,3);
}
}
if(AutaRent(vozilo))
{
if (Rentano != vozilo)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid,"~w~Mozete rentati ovo vozilo ~b~/rent ~w~ili ~b~/izlaz~n~~w~Cena Renta: ~g~120$",5000,3);
}
}
return 1;
}A evo tih linija
if(BiciklaRent(vozilo)) if(MotoRent(vozilo)) return 1;Neke slike/video za lakse dobivanje pomoci(neobavezno):
