INT to NAME
#4

According to your code, it's showing the level of the business not the ID.

Simply do this;
pawn Код:
format(poruka,sizeof(poruka),""COLOR_SIVA"~{FFFFFF} Business on sale -"COLOR_WG" %s"COLOR_SIVA" ~\n{FFFFFF}Price:"COLOR_ZELENA" $%d\n\n{FFFFFF}For buy type: /kupifirmu",BusinessType(id),BusinessInfo[id][bPrice]);
Also, I've sorted out your stock function;
pawn Код:
stock BusinessType(BIZID)
{
    new string[30];
    switch(BusinessInfo[BIZID][bType])
    {
        case 1: string = "Ducan sa odjecom";
        case 2: string = "Bar";
        case 3: string = "24/7";
        case 4: string = "GunShop";
        case 5: string = "Cvijecara";
    }
    return string;
}
Reply


Messages In This Thread
INT to NAME - by NoDi522 - 09.05.2015, 11:33
Re: INT to NAME - by DaniceMcHarley - 09.05.2015, 11:35
Re: INT to NAME - by NoDi522 - 09.05.2015, 11:52
Re: INT to NAME - by Luis- - 09.05.2015, 11:54
AW: INT to NAME - by Mencent - 09.05.2015, 11:57
Re: INT to NAME - by DaniceMcHarley - 09.05.2015, 12:46
Re: INT to NAME - by Luis- - 09.05.2015, 13:03
Re: INT to NAME - by J4Rr3x - 09.05.2015, 13:06
Re: INT to NAME - by NoDi522 - 09.05.2015, 16:57
AW: INT to NAME - by Mencent - 09.05.2015, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)