SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/01/2019, 11:24 AM   #1
akib
Big Clucker
 
akib's Avatar
 
Join Date: Jun 2016
Location: Bangladesh
Posts: 180
Reputation: 1
Default Problem with 3dlabel text

Hello,

PHP Code:
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 Code:
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); 
__________________
Nothing
akib is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3dlabel alexanderjb918 Scripting Help 2 06/06/2016 12:19 PM
[Ajuda] 3dLabel Adejair Português/Portuguese 1 03/04/2014 12:58 AM
3DLabel for player. Problem Baltazar Scripting Help 2 23/02/2013 03:10 AM
problem with 3Dlabel mhamadsaleh Scripting Help 1 24/01/2012 03:12 PM
3DLabel Text error Tanush123 Scripting Help 2 29/12/2011 10:40 PM


All times are GMT. The time now is 10:31 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.