Skripta koju koristim: Od 0
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[i][vID] == vozilo)
{
new cena = CijeneAuta(GetVehicleModel(GetPlayerVehicleID(playerid)));
if(VoziloInfo[i][vImaVlasnika] == 0)
{
new string[128];
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[cena][1]/2, Vehicles[GetVehicleModel(vozilo) - 400]);
UsaoAutoProdaja[playerid] = i; TogglePlayerControllable(playerid, 0);
SCM(playerid, -1, string);
return 1;
}
}
}
}
if(BiciklaRent(vozilo))
{
if(Rentano[playerid] != 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[playerid] != 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[playerid] != 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):
stavi na vrh moda #pragma tabsize 0
a problem je dolazi do neporavnanja linija to ustvari nije problem vec pawno javlja da mu se nesvidja.
Kralju sta reci: http://prntscr.com/46al9n koju poruku poslati :D :D :D