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;
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 = 1;
PlayerInfo = 0;
for(new i = 0; i < sizeof(SBusinesses); i++)
{
if(SBusinesses == 33)
{
SBusinesses += payout;
SaveSBusiness(i);
}
}
