INT to NAME
#8

pawn Код:
stock BusinessType(BIZID)
{
    new string[30];
    switch(BusinessInfo[BIZID][bType])
    {
        case 1: strpack(string, "Ducan sa odjecom"); // Use 'strpack' instead of 'format'! 'format' is more slower
        case 2: strpack(string, "Bar");
        case 3: strpack(string, "24/7");
        case 4: strpack(string, "GunShop");
        case 5: strpack(string, "Cvijecara");
    }
    return string;
}

new poruka[256];
format(poruka, sizeof(poruka), COLOR_SIVA"~{FFFFFF} Firma na prodaju -"COLOR_WG" %s"COLOR_SIVA" ~\n{FFFFFF}Cijena:"COLOR_ZELENA" $%d\n\n{FFFFFF}Ukoliko zelite kupiti firmu: /kupifirmu",BusinessType(id),BusinessInfo[id][bPrice]); // if you want to show biz name, change 'BusinessType(id)' with 'BusinessInfo[id][bName]' or something similar.
Create3DTextLabel(poruka,-1,BusinessInfo[id][bEntranceX], BusinessInfo[id][bEntranceY], BusinessInfo[id][bEntranceZ],30,0,0);
For strpack see this post: http://forum.sa-mp.com/showpost.php?...25&postcount=4
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: 3 Guest(s)