#1

Hello I have a problem On cmd of business system can any one help me?
the prob is the cmd not working it cmd:editbizname im mena with not working the biz description not changed but the just i see the dialog ..
PHP код:
CMD:editbizname(playerid)
{
    for(new 
biz 0biz MAX_BIZbiz++)
    {
         if(
IsPlayerInRangeOfPoint(playerid10BizInfo[biz][IXCoord], BizInfo[biz][IYCoord], BizInfo[biz][IZCoord]))
           {
             if(
GetPlayerVirtualWorld(playerid) == BizInfo[biz][VW])
               {
                 if(!
strcmp(BizInfo[biz][Owner], GetPlayerNameEx(playerid), true))
                   {
                     
ShowPlayerDialog(playeridBIZ_NAMEDIALOG_STYLE_INPUT"Business Management""Change Business Name""Confirm""Cancel");
                     
BizIDS[playerid] = biz;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_GRAD2"You're not in your business.");
                }
            }
        }
    }
    return 
1;

And This Is the Dialog plz any one tell me what is wrong?
PHP код:
 if(dialogid == BIZ_NAME)
    {
         new 
bizid BizIDS[playerid], string28[150];
           if(!
response) { ShowPlayerDialog(playeridBIZ_DIALOGDIALOG_STYLE_LIST"Business Management""Change Business Name""Confirm""Cancel"); }
        
format(BizInfo[bizid][Name], 128inputtext);
        
format(string28,sizeof(string28), "Business name changed to %s."inputtext);
        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring28);
        
Delete3DTextLabel(Text3D:BizLabel[bizid]);
        
format(string28,sizeof(string28),"%s\nOwner: %s\nType: %s\nID: %d"BizInfo[bizid][Name], BizInfo[bizid][Owner],GetBizType(bizid), bizid);
        
BizLabel[bizid] = Create3DTextLabel(string28COLOR_BIZBizInfo[bizid][XCoord], BizInfo[bizid][YCoord], BizInfo[bizid][ZCoord], 1000);
    } 
Reply
#2

plz Anyone?
Reply
#3

Look's like your code is wrong, remember to clean up your code dude.
Change the the BIZ_NAME dialog function to this :
PHP код:
if(dialogid == BIZ_NAME

    new 
bizid BizIDS[playerid], string28[150]; 
    if(
response)
    {
        
format(BizInfo[bizid][Name], 128inputtext); 
        
format(string28,sizeof(string28), "Business name changed to %s."inputtext); 
        
SendClientMessage(playeridCOLOR_LIGHTBLUEstring28); 
        
Delete3DTextLabel(Text3D:BizLabel[bizid]); 
        
format(string28,sizeof(string28),"%s\nOwner: %s\nType: %s\nID: %d"BizInfo[bizid][Name], BizInfo[bizid][Owner],GetBizType(bizid), bizid); 
        
BizLabel[bizid] = Create3DTextLabel(string28COLOR_BIZBizInfo[bizid][XCoord], BizInfo[bizid][YCoord], BizInfo[bizid][ZCoord], 1000);
    }
       else
       { 
           
ShowPlayerDialog(playeridBIZ_DIALOGDIALOG_STYLE_LIST"Business Management""Change Business Name""Confirm""Cancel"); 
       }      

Reply
#4

Still Not working
Reply
#5

This Cant Be Fixed?
Reply
#6

Any One Please Help Me Its Bugged
Reply
#7

There Is Any Help?
Reply
#8

Read the forum rules. no bumping your thread, you need to wait at least 24 hours.
Reply
#9

Quote:
Originally Posted by Luis-
Посмотреть сообщение
Read the forum rules. no bumping your thread, you need to wait at least 24 hours.
okay .D.D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)