09.05.2015, 11:54
According to your code, it's showing the level of the business not the ID.
Simply do this;
Also, I've sorted out your stock function;
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]);
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;
}