Business problem
#1

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);
}
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)