Problem with 3dlabel text
#1

Hello,

PHP код:
UpdateBiz(id){
    new 
string[128],type[20];
    switch(
BizInfo[id][b_type]){
        case 
1: format(type, 20, "Ammunation");
        case 
2: format(type, 20, "24/7");
        case 
3: format(type, 20, "Clothing Shop");
    }
    if(
BizInfo[id][b_text]){
        
Delete3DTextLabel(BizInfo[id][b_text]);
    }
    if(!
strlen(BizInfo[id][b_owner]))
    {
        
BizInfo[id][b_pickup]=CreatePickup(1272, 1, BizInfo[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(string, COLOR_WHITE, BizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z]+0.1, 10, 0, 1);
    }
    else
    {
        
BizInfo[id][b_pickup]=CreatePickup(1272, 1, BizInfo[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(string, COLOR_BLUE, BizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z]+0.1, 10, 0, 1);
    }
    
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(1272, 1, BizInfo[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(string, COLOR_BLUE, BizInfo[id][b_x], BizInfo[id][b_y], BizInfo[id][b_z]+0.1, 10, 0, 1); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)