Opis problema: E vako kada igrac proda auto nista se nedesava, pa ako moze pomoc 😄
Dio scripte:
if(dialogid == AKONTROLADA)
{
if(response)
{
if(!IsPlayerInRangeOfPoint(playerid, 10.0, 546.5853,-1272.7213,17.2482)) return SCM(playerid, ZUTA, "Moras biti kod autosalona");
new id = PlayerInfo;
if(GetPlayerVehicleID(playerid) == PlayerInfo) { id = PlayerInfo; }
else { return 1; }
if(IsPlayerInVehicle(playerid, id))
{
if(PlayerInfo == 999) return SCM(playerid, COLOR_GREY, "Nemas auto!");
CarInfo = 0;
CarInfo = 1;
CarInfo = 0;
new string;
format(string, sizeof(string), "None");
strmid(CarInfo, string, 0, strlen(string), 999);
DestroyVehicle(id);
PlayerInfo = CeneVozila(id)/2;
GivePlayerMoney(playerid, CeneVozila(id)/2);
PlayerInfo = 999;
SCM(playerid, COLOR_YELLOW, "Prodao si auto u pola cijene!");
SacuvajAuta(id);
}
}
}
