SA-MP Forums Archive
Business problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Business problem (/showthread.php?tid=522995)



Business problem - iThePunisher - 30.06.2014

i buy the business in-game and everything is ok it shows whos the owner etc.
but while i leave and join again the textlabels are removed it just shows the checkpoint!
this is the stock to load the business labels
pawn Код:
stock loadbizzes()
{
    new count5 = 0;
    for(new i=0; i<MAX_BUSS; i++)
    {
        format(String,sizeof(String),"biznese/%i.ini",i);
        if(dini_Exists(String))
        {
            BusinessInfo[i][C_P] = CreateDynamicCP(dini_Float(String, "BusX"),dini_Float(String, "BusY"),dini_Float(String, "BusZ"),1.0,dini_Int(String, "World"),dini_Int(String, "Interior"),-1,100.0);
            if(!strcmp(BusOwner(i), NOTOWNED, 56SENSETIVE))
            {
                format(Label, sizeof(Label), "{999999}%s [Cost]: $%i",dini_Get(String, "Name"),dini_Int(String, "Cost"));
                BusinessInfo[i][bizLabel] = Create3DTextLabel(bLabel,White,dini_Float(String, "BusX"),dini_Float(String, "BusY"),dini_Float(String, "BusZ"),20.0,0,1);
            }
            if(strcmp(BusOwner(i), NOTOWNED, 56SENSETIVE))
            {
                format(Label, sizeof(Label), "{999999}%s [Cost]: $%i",dini_Get(String, "Name"), dini_Get(String, "Owner"),dini_Int(String, "Cost"),i);
                BusinessInfo[i][bizLabel] = Create3DTextLabel(bLabel,White,dini_Float(String, "BusX"),dini_Float(String, "BusY"),dini_Float(String, "BusZ"),20.0,0,1);
            }
            count5++;
        }
    }
    return printf("Your server has loaded %i businesses",count5);
}



Re: Business problem - BroZeus - 30.06.2014

put this line after the 3d text label is created and see if it prints or not--
print("****************text label created************");


Re: Business problem - iThePunisher - 30.06.2014

the problem is when i create 6 businesses the text of one of them wont show!