[pomoc]ne zeli da spremi novac u bizz

Započeo Aldin Begovic, Februar 09, 2012, 12:52:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

mod:gf
opis problema:pokusao sam da napravim da kada odvezes liniju od autobusa da spremi novac u firmu ali nisam uspio ! Neznam sta ne valja! Molim pomoc!!!
cod:   
new randpay = 390 + random(100);
new string[256];
new bonus = 100 + random(120);
GivePlayerCash(playerid, randpay+ bonus);
new payout = (randpay + bonus)/2;
TogglePlayerControllable(playerid, 1);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, 0x8D531AFF, "___________");
format(string, sizeof(string), "Zarada: %d$.", randpay);
SendClientMessage(playerid, 0x9A6735FF, string);
format(string, sizeof(string), "Bonus: %d$.", bonus);
SendClientMessage(playerid, 0xA97E53FF, string);
format(string, sizeof(string), "Poslodavac dobija: %d$.", payout);
SendClientMessage(playerid, 0xB28C65FF, string);
SendClientMessage(playerid, 0xB89571FF, "___________");
format(string, sizeof(string), "Ukupna zarada: %d$.", randpay + bonus);
SendClientMessage(playerid, 0xBF9F7FFF, string);
Linija12[playerid] = 1;
PlayerInfo[playerid][pBusVozi] = 0;
for(new i = 0; i < sizeof(SBusinesses); i++)
{
if(SBusinesses[i][sbType] == 33)
{
   SBusinesses[i][sbVault] += payout;
   SaveSBusiness(i);
    }
}

znaci stavi ovo negdje pri kraju i trebas znat id biza a znat ces tako da odes u mod i da odes edit bilo sta mozes lvl ili nesta i pisat ce ti nesta kao sbizz:24

SBizzInfo[5][sbTill] += 210;----->novac u firmi koji zelis ti sebi stavi
      ExtortionSBiz(5, SBizzInfo[5][sbEntranceCost]);
      SBizzInfo[5][sbProducts]--;
ovo di je 5 to ti je id sbizza znaci ak je kod tebe recimo 14 onda pobrises 5 i stavis 14.Ukoliko nisi shvatio mozes mi se na PM javiti.

{
new randpay = 390 + random(100);
new string[256];
new bonus = 100 + random(120);
GivePlayerCash(playerid, randpay+ bonus);
new payout = (randpay + bonus)/2;
TogglePlayerControllable(playerid, 1);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, 0x8D531AFF, "___________");
format(string, sizeof(string), "Zarada: %d$.", randpay);
SendClientMessage(playerid, 0x9A6735FF, string);
format(string, sizeof(string), "Bonus: %d$.", bonus);
SendClientMessage(playerid, 0xA97E53FF, string);
format(string, sizeof(string), "Poslodavac dobija: %d$.", payout);
SendClientMessage(playerid, 0xB28C65FF, string);
SendClientMessage(playerid, 0xB89571FF, "___________");
format(string, sizeof(string), "Ukupna zarada: %d$.", randpay + bonus);
SendClientMessage(playerid, 0xBF9F7FFF, string);
Linija12[playerid] = 1;
PlayerInfo[playerid][pBusVozi] = 0;
SBizzInfo[24][sbTill] += 1000;
        ExtortionSBiz(24, SBizzInfo[24][sbEntranceCost]);
        SBizzInfo[24][sbProducts]--;
}


id bizza je 24 al opet nece :S