Problem with 3dlabel text
#1

Hello,

PHP код:
UpdateBiz(id){
    new 
string[128],type[20];
    switch(
BizInfo[id][b_type]){
        case 
1format(type20"Ammunation");
        case 
2format(type20"24/7");
        case 
3format(type20"Clothing Shop");
    }
    if(
BizInfo[id][b_text]){
        
Delete3DTextLabel(BizInfo[id][b_text]);
    }
    if(!
strlen(BizInfo[id][b_owner]))
    {
        
BizInfo[id][b_pickup]=CreatePickup(12721BizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z], -1);
        
format(string,sizeof(string), "This business is for sell!\nPrice : $%i\nBiz type: %s"BizInfo[id][b_price],type);
        
BizInfo[id][b_text]=Create3DTextLabel(stringCOLOR_WHITEBizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z]+0.11001);
    }
    else
    {
        
BizInfo[id][b_pickup]=CreatePickup(12721BizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z], -1);
        
format(string,sizeof(string), "Business Name : %s\n{FFFFFF}Owner: %s\nBiz type: %s"BizInfo[id][b_name],BizInfo[id][b_owner],type);
        
BizInfo[id][b_text]=Create3DTextLabel(stringCOLOR_BLUEBizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z]+0.11001);
    }
    
printf("%s",BizInfo[id][b_name]);
    return 
1;

Everything is working fine but business name not showing, i have tried with "printf" function it prints well but not showing in 3DTextLabel

PHP код:
BizInfo[id][b_pickup]=CreatePickup(12721BizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z], -1);
        
format(string,sizeof(string), "Business Name : %s\n{FFFFFF}Owner: %s\nBiz type: %s"BizInfo[id][b_name],BizInfo[id][b_owner],type);
        
BizInfo[id][b_text]=Create3DTextLabel(stringCOLOR_BLUEBizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z]+0.11001); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)