[Pomoc] Ne dolazi novac u bizz HITNO

Započeo Boky Boy, Februar 06, 2016, 19:16:31 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: NL
Detaljan opis problema: Kada se nesta kupi u trafici ne dolazi mi novac u firmu
Dio skripte:
Evo neki dio:

public ExtortionSBiz(bizid, money)
{
    new string[256];
    format(string, sizeof(string), "Niko");
    if(strcmp(SBizzInfo[bizid][sbExtortion],string, true ) == 0 )
{
    return 0;
}
foreach (Player, i)
{
        new sendername[MAX_PLAYER_NAME];
new wstring[MAX_PLAYER_NAME];
imeigraca(i, sendername);
format(string, sizeof(string), "%s", sendername);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(SBizzInfo[bizid][sbExtortion] ,wstring, true ) == 0 )
{
    new value = money / 100;
    value = value * 10;
    PlayerInfo[i][pIznudaNovac] += value;
}
}
SpremiSFirmu(bizid);
return 1;
}


Komanda mi je ista za trafiku i market, a u market dolazi novac a u trafiku ne dolazi, a evo i komanda:

CMD:kupi(playerid,params[])
{
    if(IgracLogovan[playerid] == 1)
    {
  if (PlayerToPoint(10.0, playerid,-25.884498,-185.868988,1003.546875))
{
ShowPlayerDialog(playerid, DIALOG_MARKET1, DIALOG_STYLE_LIST, "{FFFFFF}SuperMarket", "{FFFFFF}Mobitel {FFFF33}150$\n{FFFFFF}Bingo Tiket {FFFF33}500$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}4$\n{FFFFFF}Cigare {FFFF33}$30\n{FFFFFF}Sat {FFFF33}$100\n{FFFFFF}GPS Sistem {FFFF33}$150\n{FFFFFF}Povez {FFFF33}$10", "U redu", "Odustani");
}
if (PlayerToPoint(10.0, playerid, 6.091176,-29.271898,1003.549438))
{
ShowPlayerDialog(playerid, DIALOG_MARKET2, DIALOG_STYLE_LIST, "{FFFFFF}SuperMarket", "{FFFFFF}Mobitel {FFFF33}150$\n{FFFFFF}Bingo Tiket {FFFF33}500$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}4$\n{FFFFFF}Cigare {FFFF33}$30\n{FFFFFF}Sat {FFFF33}$100\n{FFFFFF}GPS Sistem {FFFF33}$150\n{FFFFFF}Povez {FFFF33}$10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-30.946699,-89.609596,1003.546875))
{
ShowPlayerDialog(playerid, DIALOG_MARKET3, DIALOG_STYLE_LIST, "{FFFFFF}SuperMarket", "{FFFFFF}Mobitel {FFFF33}150$\n{FFFFFF}Bingo Tiket {FFFF33}500$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}4$\n{FFFFFF}Cigare {FFFF33}$30\n{FFFFFF}Sat {FFFF33}$100\n{FFFFFF}GPS Sistem {FFFF33}$150\n{FFFFFF}Povez {FFFF33}$10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-25.132598,-139.066986,1003.546875))
{
ShowPlayerDialog(playerid, DIALOG_MARKET4, DIALOG_STYLE_LIST, "{FFFFFF}SuperMarket", "{FFFFFF}Mobitel {FFFF33}150$\n{FFFFFF}Bingo Tiket {FFFF33}500$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}4$\n{FFFFFF}Cigare {FFFF33}$30\n{FFFFFF}Sat {FFFF33}$100\n{FFFFFF}GPS Sistem {FFFF33}$150\n{FFFFFF}Povez {FFFF33}$10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-27.312299,-29.277599,1003.557250))
{
ShowPlayerDialog(playerid, DIALOG_MARKET5, DIALOG_STYLE_LIST, "{FFFFFF}SuperMarket", "{FFFFFF}Mobitel {FFFF33}150$\n{FFFFFF}Bingo Tiket {FFFF33}500$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}4$\n{FFFFFF}Cigare {FFFF33}$30\n{FFFFFF}Sat {FFFF33}$100\n{FFFFFF}GPS Sistem {FFFF33}$150\n{FFFFFF}Povez {FFFF33}$10", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-26.691598,-55.714897,1003.546875))
{
ShowPlayerDialog(playerid, DIALOG_MARKET6, DIALOG_STYLE_LIST, "{FFFFFF}SuperMarket", "{FFFFFF}Mobitel {FFFF33}150$\n{FFFFFF}Bingo Tiket {FFFF33}500$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}4$\n{FFFFFF}Cigare {FFFF33}$30\n{FFFFFF}Sat {FFFF33}$100\n{FFFFFF}GPS Sistem {FFFF33}$150\n{FFFFFF}Povez {FFFF33}$10", "U redu", "Odustani");
}
if (PlayerToPoint(4.0, playerid,1531.0088,-1738.5283,13.5469)) //kupi
{
ShowPlayerDialog(playerid, DIALOG_KIOSK1, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1484.0363,-1029.4645,23.6563)) //kupi br 2
{
ShowPlayerDialog(playerid, DIALOG_KIOSK2, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,1827.5243,-1891.1887,13.5174)) //kupi br 5
{
ShowPlayerDialog(playerid, DIALOG_KIOSK5, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(4.0, playerid,2012.1190,-1455.0481,13.5547)) //kupi br 6
{
ShowPlayerDialog(playerid, DIALOG_KIOSK6, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-2018.1608,-56.0157,35.3616)) //kupi br 5
{
ShowPlayerDialog(playerid, DIALOG_KIOSK7, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,-2732.1323,387.4462,4.6506)) //kupi br 5
{
ShowPlayerDialog(playerid, DIALOG_KIOSK8, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,824.0573, -1355.8125, -0.6082)) //kupi br 5
{
ShowPlayerDialog(playerid, DIALOG_KIOSK9, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,974.42, -1309.07, 13.52)) //kupi br 10
{
ShowPlayerDialog(playerid, DIALOG_KIOSK10, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,1428.42, -1023.65, 23.93)) //kupi br 11
{
ShowPlayerDialog(playerid, DIALOG_KIOSK11, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,2017.44592, -1273.63660, 24.06904)) //kupi br 11
{
ShowPlayerDialog(playerid, DIALOG_KIOSK12, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,1802.57532, -1867.37732, 13.66303)) //kupi br 11
{
ShowPlayerDialog(playerid, DIALOG_KIOSK13, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,1465.20276, -1669.34363, 14.14147)) //kupi br 11
{
ShowPlayerDialog(playerid, DIALOG_KIOSK3, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
else if (PlayerToPoint(5.0, playerid,432.41681, -1782.10767, 5.66718)) //kupi br 11
{
ShowPlayerDialog(playerid, DIALOG_KIOSK4, DIALOG_STYLE_LIST, "{FFFFFF}Kiosk", "{FFFFFF}Dopuna {FFFF33}50$\n{FFFFFF}Dopuna {FFFF33}100$\n{FFFFFF}Dopuna {FFFF33}200$\n{FFFFFF}Dopuna {FFFF33}250$\n{FFFFFF}Imenik {FFFF33}$10\n{FFFFFF}Upaljac {FFFF33}$5\n{FFFFFF}Cigare{FFFF33} $30\n{FFFFFF}Sat{FFFF33} $100", "U redu", "Odustani");
}
}
return 1;
}   


Evo sremanje firme:

stock SpremiSFirmu( i )
{
    new FileName[128];
    format(FileName, sizeof(FileName), "/Ownership/SFirma/SFirma_%d.ini", i);
    if(fexist(FileName))
    {
dini_IntSet(FileName, "Owned", SBizzInfo[i][sbOwned]);
dini_Set(FileName, "Owner", SBizzInfo[i][sbOwner]);
dini_Set(FileName, "sbMessage", SBizzInfo[i][sbMessage]);
dini_Set(FileName, "sbExtortion", SBizzInfo[i][sbExtortion]);

dini_FloatSet(FileName, "sbEntranceX", SBizzInfo[i][sbEntranceX]);
    dini_FloatSet(FileName, "sbEntranceY", SBizzInfo[i][sbEntranceY]);
dini_FloatSet(FileName, "sbEntranceZ", SBizzInfo[i][sbEntranceZ]);

        dini_IntSet(FileName, "sbLevelNeeded", SBizzInfo[i][sbLevelNeeded]);
        dini_IntSet(FileName, "sbBuyPrice", SBizzInfo[i][sbBuyPrice]);
        dini_IntSet(FileName, "sbEntranceCost", SBizzInfo[i][sbEntranceCost]);
        dini_IntSet(FileName, "sbTill", SBizzInfo[i][sbTill]);
        dini_IntSet(FileName, "sbLocked", SBizzInfo[i][sbLocked]);
        dini_IntSet(FileName, "sbInterior", SBizzInfo[i][sbInterior]);
        dini_IntSet(FileName, "sbProducts", SBizzInfo[i][sbProducts]);
        dini_IntSet(FileName, "sbMaxProducts", SBizzInfo[i][sbMaxProducts]);
        dini_IntSet(FileName, "sbPriceProd", SBizzInfo[i][sbPriceProd]);
dini_IntSet(FileName, "TipSFirme", SBizzInfo[i][TipSFirme]);
printf( "[SISTEM] Spremanje | SFirma %d spremljena.", i);
    }
return 1;
}


Evo i dialog kioska:

http://pastebin.com/x8y5UHWf

A ovo je jedini kiosk koji radi kako treba:

http://pastebin.com/NFeifH4x

Dajte neko nesto, hitno mi je..
Neke slike/video za lakse dobivanje pomoci(neobavezno):