[pomoc] bug

Započeo Stole_Legia, Decembar 06, 2012, 20:01:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:SE RP
Detaljan opis problema:Ne mogu da rentam motor/bicikl na modu,pise "Nemamo vise zaliha"
Dio skripte:Evo

}
    if(dialogid == 320)
{
if(response)
{
      if(GetPlayerVehicleID(playerid) >= 139 && GetPlayerVehicleID(playerid) <= 152)
{
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zalih", 4000, 4);
return 1;
}
if (GetPlayerMoney(playerid) <  199)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/biciklo  !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "    Neko je vec iznajmio ovo vozilo !");
        return 1;
    }
}
SafeJBC_GivePlayerMoney(playerid,-100);
SBizzInfo[0][sbTill] += 100;
ExtortionSBiz(0, 200);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, "Da vratite iznajmljeno vozilo | /unrent");
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
}
}
return 1;
}
   if(dialogid == 345)
{
if(response)
{

if(GetPlayerVehicleID(playerid) >= 153 && GetPlayerVehicleID(playerid) <= 177)
{
if(SBizzInfo[31][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 4000, 4);
return 1;
}
if (GetPlayerMoney(playerid) <  149)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac  !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREY, "    Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
SafeJBC_GivePlayerMoney(playerid,-100);
SBizzInfo[31][sbTill] += 100;
ExtortionSBiz(31, 150);
SBizzInfo[31][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, COLOR_RED, "Da vratite iznajmljeno vozilo | /unrent");
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
}
}
return 1;
New Life RolePlay[USKORO]
IP:92.222.216.47:7874
TeamSpeak:37.59.64.0:9955
Forum:U izradi

Uzmi posao dostavljas zaliha i dovezi zalihe u taj biznis

u gamemodu ne postoji taj posao...
New Life RolePlay[USKORO]
IP:92.222.216.47:7874
TeamSpeak:37.59.64.0:9955
Forum:U izradi

Ovaj red iz komande if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zalih", 4000, 4);
return 1;
}
obrisi

Citat: Vucko â,,¢ poslato Decembar 06, 2012, 20:09:20 POSLE PODNE
Idi tamo gde je bila zlatara na B.alkan E.xpress-u. Tamo imas BIZZ za RENT Kola,Motora.. Kupi ga i postavi zalihe na 9999999 ILI kolko vec moze najvise..
Kako to da postavim moze pomoc?
New Life RolePlay[USKORO]
IP:92.222.216.47:7874
TeamSpeak:37.59.64.0:9955
Forum:U izradi

Uradi kako sam ti reko, obrisi to iz komande, jer ako nemas biznis za produkte, mozes 2000 godina da trazis to i neces naci.

ok,ovde moze LOCK!
New Life RolePlay[USKORO]
IP:92.222.216.47:7874
TeamSpeak:37.59.64.0:9955
Forum:U izradi