[Pomoc] Nema vise zaliha!

Započeo Sandek_Biscic, Februar 04, 2011, 14:45:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Sandek_Biscic

Kako da sredim da ce /Rentbike i /rentcar
imati skros zalih a ne kad napisem /Rentbike/car da mi ispod napise nema vise zaliha??
kako da to sredim? gdje se zalih svisa?
Poslednja Izmena: Februar 04, 2011, 15:23:06 POSLE PODNE od Sandek_Biscic

if(strcmp(cmd, "/rentcar", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 128 && GetPlayerVehicleID(playerid) <= 152)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if (GetPlayerMoney(playerid) <  500)
{
SendClientMessage(playerid, COLOR_GREEN, "   Nemate toliko novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREEN, "Morate prvo da vratite iznajmljeni auto/motor/camac !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREEN, "    Neko je vec iznajmio ovaj auto !");
        return 1;
    }
}


if(strcmp(cmd, "/rentbike", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 153 && GetPlayerVehicleID(playerid) <= 177)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
SendClientMessage(playerid, COLOR_GREEN, "   Nemate dovoljno novca !");
return 1;
}
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
SendClientMessage(playerid, COLOR_GREEN, "Morate prvo da vratite iznajmljeni auto/motor/camac  !");
return 1;
}
foreach (Player, i)
{
    if(HireCar[i] == GetPlayerVehicleID(playerid))
    {
        SendClientMessage(playerid, COLOR_GREEN, "    Neko je vec iznajmio ovaj motor !");
        return 1;
    }
}
SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];
ExtortionSBiz(0, SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbProducts]--;
HireCar[playerid] = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~Nemojte zaboraviti da ~b~/unrentbike~n~~g~/lock ~w~da zakljucate motor",hirefee);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}

Sandek_Biscic



Sandek_Biscic

Ma nema problema sredio sam na laksi nacin..
napravio sam
/asellsbiz [id] i sve sam izbriso i sad radi normalno
izgleda da so igraci imali biznise pa zato?

LoL... Nema to veze, nego u RENT biznisima nema produkta.. A ja sam ti lepo izbacio da ne mora da ima produkta..
To sto si uradio ,time nista nisi postigao -.-