Help me convert this to a Dialog?
#2

PHP код:
                    new mydialogue[400];
                    
strcat(mydialog"|___ BANK STATEMENT ___|");
                    
format(stringsizeof(string), "\n\nPaycheck: $%d"checks);
                    
strcat(mydialog,string);
                    
format(stringsizeof(string), "\nIncome Tax: -$%d"incometax);
                    
strcat(mydialog,string);
                    if(
PlayerInfo[i][pPbiskey] >= 1)
                    {
                        
format(stringsizeof(string), "\nBusiness Electricity Bill: -$%d"ebill2);
                        
strcat(mydialog,string);
                    }
                     
format(stringsizeof(string), "\nRent: -$%d"rent);
                    
strcat(mydialog,string);
                    
format(stringsizeof(string), "\nBalance: $%d"account);
                    
strcat(mydialog,string);
                    if(
PlayerInfo[i][pDonateRank] == 0)
                    {
                        
tmpintrate tmpintrate/5;
                        
format(stringsizeof(string), "\ninterest rate: 0.%d percent",tmpintrate);
                        
strcat(mydialog,string);
                     }
                     else if(
PlayerInfo[i][pDonateRank] == 1)
                    {
                        
tmpintrate tmpintrate/5;
                        
format(stringsizeof(string), "\nInterest rate: 0.%d percent [Bronze VIP]",tmpintrate);
                        
strcat(mydialog,string);
                     }
                     else if(
PlayerInfo[i][pDonateRank] == 2)
                    {
                        
tmpintrate tmpintrate/5;
                        
format(stringsizeof(string), "\nInterest rate: 0.%d percent [Silver VIP]",tmpintrate);
                        
strcat(mydialog,string);
                     }
                     else if(
PlayerInfo[i][pDonateRank] == 3)
                    {
                        
tmpintrate tmpintrate/10;
                        
format(stringsizeof(string), "\nInterest rate: %d percent [Gold VIP]",tmpintrate);
                        
strcat(mydialog,string);
                     }
                      else if(
PlayerInfo[i][pDonateRank] == 4)
                    {
                        
tmpintrate tmpintrate/10;
                        
format(stringsizeof(string), "\nInterest rate: %d percent [Platinium VIP]",tmpintrate);
                        
strcat(mydialog,string);
                     }
                      else if(
PlayerInfo[i][pDonateRank] == 5)
                    {
                        
tmpintrate tmpintrate/10;
                        
format(stringsizeof(string), "\nInterest rate: %d percent [VIP Moderator]",tmpintrate);
                        
strcat(mydialog,string);
                     }
                    
format(stringsizeof(string), "\nInterest gained $%d"interest);
                    
strcat(mydialog,string);
                     
strcat(mydialog,"\n\n|------------------------------------------|");
                    
format(stringsizeof(string), "\n\nNew Balance: $%d"PlayerInfo[i][pAccount]);
                    
strcat(mydialog,string);
                    
ShowPlayerDialog(playeridDIALOG_IDDIALOG_STYLE_MSGBOX,"DIALOG TEXT",mydialog,"Okay",""); 
change the values in this to your values
Код:
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX,"DIALOG TEXT",mydialog,"Okay","");
Reply


Messages In This Thread
Help me convert this to a Dialog? - by ChildVape - 31.12.2017, 19:44
Re: Help me convert this to a Dialog? - by RogueDrifter - 31.12.2017, 19:52
Re: Help me convert this to a Dialog? - by ChildVape - 31.12.2017, 20:11
Re: Help me convert this to a Dialog? - by RogueDrifter - 31.12.2017, 20:51
Re: Help me convert this to a Dialog? - by Lucases - 31.12.2017, 21:57
Re: Help me convert this to a Dialog? - by RogueDrifter - 31.12.2017, 22:06
Re: Help me convert this to a Dialog? - by Lucases - 31.12.2017, 23:16

Forum Jump:


Users browsing this thread: 2 Guest(s)