[Pomoc]Bizzovi

Započeo 96esl., Maj 07, 2011, 23:07:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.


Skripta koju koristim:Faction Game
Detaljan opis problema:Ovako dodao sam jos 2 bizza rent motora i sad me zanima kad netko renta motor kako da taj novac ide u taj bizz ima vec od prije za jedan bizz da mu ide al ja zelim da postavim da ide i u ova 2 bizza sto sam dodao
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

if(strcmp(cmd, "/rentbike", true) == 0)
{
        if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 186 && GetPlayerVehicleID(playerid) <= 210)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(SBizzInfo[0][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
return 1;
}
/*if(PlayerInfo[playerid][pPbiskey] == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}*/
if (GetPlayerMoney(playerid) <  SBizzInfo[0][sbEntranceCost])
{
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;
    }
}
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), "Iznajmili ste vozilo sada samo vi mozete voziti ovo vozilo.",hirefee);
SendClientMessage(playerid, YELLOW, string);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}

Evo komande

dragan12

Pa dodas ispod ovoga
SafeGivePlayerMoney(playerid,-SBizzInfo[0][sbEntranceCost]);
SBizzInfo[0][sbTill] += SBizzInfo[0][sbEntranceCost];

Ovo:
SBizzInfo[Id Biza][sbTill] += SBizzInfo[Id Biza][sbEntranceCost];
Ako je i to ubaceno u sbizz.cfg
Ako je ubacenu u bizz.cfg stavis onda ovako
BizzInfo[Id Biza][bTill] += BizzInfo[Id Biza][bEntranceCost];

Hvala na pomoci nadaam se da je tako