Dialogs DOESN'T continue, but why?
#7

Changed it, thanks!

But I got in FS and GM dialogid!

From my GM:
PHP код:
    public OnDialogResponse(playeriddialogidresponselistiteminputtext[]) {
        switch(
dialogid) {
            case 
DIALOG_REGISTER: {
                if(!
response) return Kick(playerid);
                if(
response) {
                    if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT""WHITE"Registering...",""RED"You have entered an invalid password.\n"WHITE"Type your password below to register a new account.","Register","Quit");
                    if(
INI_Open(getINI(playerid))) {
                        
INI_WriteString("Password",inputtext);
                        
INI_WriteInt("Cash"0);
                        
INI_WriteInt("Admin"0);
                        
INI_WriteInt("FirstTime"0);
                        
INI_WriteInt("Skin"0);
                        
INI_WriteInt("Score"0);
                        
INI_Save();
                        
INI_Close();
                        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
                    }
                }
            } case 
DIALOG_LOGIN: {
                if(!
response) return Kick playerid );
                if(
response) {
                    if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT""WHITE"Login",""RED"You have entered an invalid password.\n"WHITE"Type your password below to login.","Login","Quit");
                    if(
INI_Open(getINI(playerid))) {
                        
INI_ReadString(PlayerInfo[playerid][pPass],"Password",20);
                        if(
strcmp(inputtext,PlayerInfo[playerid][pPass],false)) {
                            
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit");
                        }
                        
GivePlayerMoneyplayeridINI_ReadInt"Cash" ) );
                        
PlayerInfo[playerid][pAdmin] = INI_ReadInt("Admin");
                        
gFirstTimeHasJoined[playerid] = INI_ReadInt("FirstTime");
                        
gPlayerSkinForEver[playerid] = INI_ReadInt("Skin");
                        
SetPlayerScoreplayeridINI_ReadInt"Score" ) );
                        
INI_Close();
                    }
                }
            }
        }
        return 
1;
    } 
FS:

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch( 
dialogid )
    {
        case 
BANK_CREATE2,
             
BANK_LOGGED,
             
BANK_INFO,
             
BANK_WITH_DONE,
             
BANK_DEPO_DONE,
             
TRANFER_REC:OnPlayerCommandTextplayerid"/bank");
        case 
BANK_TRANSFER_6:
        {
            if ( !
response ) return DeletePVarplayerid"tAmount" ),
                                    
DeletePVarplayerid"tPlayer" ),
                                    
DeletePVarplayerid"tPlayer2" ),
                                    
ShowPlayerDialogplayeridBANK_TRANSFERDIALOG_STYLE_LIST""COL_ALL"Transfer Money Method""{D6D4D4}Direct Transfer( {BFDEC1}Active player {D6D4D4})\n{D6D4D4}Account transfer( {DEBFBF}Offline transfer {D6D4D4})\n{BFDEDE}More information about methods""Select""Back" );
            else
            {
                if ( 
IsPlayerConnectedGetPVarIntplayerid"tPlayer2" ) ) )
                {
                    new 
tName50 ];
                    
GetPVarStringplayerid"tPlayer2Name"tNamesizeof (tName) );
                    
formatStrsizeof (Str),   "\n{FFFFFF}A money transfer has arrived!\n\n\
                                                    {FFFFFF}Received Amount: "
COL_ALL"$%d\n\
                                                       {FFFFFF}From: "
COL_ALL"%s\n\
                                                       {FFFFFF}Transfer Type: "
COL_ALL"Account Transfer\n\
                                                       {FFFFFF}Account Balance: "
COL_ALL"$%d\n\n\
                                                    "
COL_RED"NOTE:{FFFFFF} The money have been alocated into your account!\n           \
                                                                           You can withdraw them later!"
,
                                                                                
GetPVarIntplayerid"tAmount" ),
                                                                                
PlayerName2playerid ),
                                                                                
P_DATAGetPVarIntplayerid"tPlayer2" ) ][ P_Deposited ] + GetPVarIntplayerid"tAmount" ) );
                    
ShowPlayerDialogGetPVarIntplayerid"tPlayer2" ), (1234*9), DIALOG_STYLE_MSGBOX""COL_ALL"Money Received"Str"Close""" );
                    
P_DATAplayerid ][ P_Deposited ] -= GetPVarIntplayerid"tAmount" );
                    
formatStrsizeof (Str),   "\n{FFFFFF}A money transfer has been done!\n\n\
                                                    {FFFFFF}Transfered Amount: "
COL_ALL"$%d\n\
                                                       {FFFFFF}To Account: "
COL_ALL"%s\n\
                                                       {FFFFFF}Transfer Type: "
COL_ALL"Account Transfer\n\
                                                       {FFFFFF}Account Balance: "
COL_ALL"$%d\n\n\
                                                    "
COL_RED"NOTE:{FFFFFF} The player is connected!\n           \
                                                                           He has been notified of the transfer!"
,
                                                                                
GetPVarIntplayerid"tAmount" ),
                                                                                
tName,
                                                                                
P_DATAplayerid ][ P_Deposited ]);
                    
ShowPlayerDialogplayerid, (1234*9), DIALOG_STYLE_MSGBOX""COL_ALL"Money Transfered"Str"Close""" );
                    new 
INI:BankAcc INI_OpenReturnBankingNameGetPVarIntplayerid"tPlayer2" ) ) );
                    
INI_WriteInt(   BankAcc"MONEY",   ( P_DATAGetPVarIntplayerid"tPlayer2" ) ][ P_Deposited ] + GetPVarIntplayerid"tAmount" )  ));
                    
INI_CloseBankAcc );
                    new 
INI:BankAcc2 INI_OpenReturnBankingNameplayerid ) );
                    
INI_WriteInt(       BankAcc2"MONEY",                     P_DATAplayerid ][ P_Deposited ]    );
                    
INI_WriteInt(        BankAcc2"TRANSFERED",               ( GetPVarIntplayerid"tAmount" ) + P_DATAplayerid ][ P_Transfered ] )  );
                    
INI_WriteInt(         BankAcc2"LAST_TRANSFER_AMOUNT",     GetPVarIntplayerid"tAmount" )                      );
                    
INI_WriteString(     BankAcc2"LAST_TRANSFER_TYPE",     "Account Transfer"                                  );
                    
INI_WriteString(     BankAcc2"LAST_TRANSFER_PLAYER",     PlayerName2GetPVarIntplayerid"tPlayer2" ) )      );
                    
INI_WriteString(    BankAcc2"LAST_TRANSFER",          ReturnDate( )                                          );
                    
INI_CloseBankAcc2 );
                }
                else
                {
                    new 
tName50 ];
                    
GetPVarStringplayerid"tPlayer2Name"tNamesizeof (tName) );
                    
formatStrsizeof (Str),   "\n{FFFFFF}A money transfer has been done!\n\n\
                                                    {FFFFFF}Transfered Amount: "
COL_ALL"$%d\n\
                                                       {FFFFFF}To Account: "
COL_ALL"%s\n\
                                                       {FFFFFF}Transfer Type: "
COL_ALL"Account Transfer\n\n\
                                                    "
COL_RED"NOTE:{FFFFFF} The player is not connected!\n           \
                                                    He will be notified on connection!"
,
                                                                                
GetPVarIntplayerid"tAmount" ),
                                                                                
tName);
                    
ShowPlayerDialogplayerid, (1234*9), DIALOG_STYLE_MSGBOX""COL_ALL"Money Transfered"Str"Close""" );
                    
INI_ParseFileReturnBankingNameGetPVarIntplayerid"tPlayer2" ) ), "LoadDeposit2", .bExtra true, .extra playerid );
                    new 
DepoCash GetPVarIntplayerid"Deposited2" ),
                        
tAmount GetPVarIntplayerid"tAmount" );
                    
formatStr300FILE_LOCATIONINI_EncodetName ) );
                    new 
INI:BankAcc INI_OpenStr );
                    
INI_WriteInt(       BankAcc,    "MONEY",                 tAmount DepoCash     );
                    
INI_WriteInt(       BankAcc,    "MONEY_RECEIVED",        tAmount                );
                    
INI_WriteString(    BankAcc,    "MONEY_RECEIVED_FROM",   PlayerName2playerid ));
                    
INI_WriteString(    BankAcc,    "MONEY_RECEIVED_DATE",   ReturnDate( )            );
                    
INI_WriteInt(       BankAcc,    "TRANSFER_RECEIVED",     1                         );
                    
INI_CloseBankAcc );
                    
P_DATAplayerid ][ P_Deposited ] -=     tAmount;
                    
P_DATAplayerid ][ P_Transfered ] +=      tAmount;
                    new 
INI:BankAcc2 INI_OpenReturnBankingNameplayerid ) );
                    
INI_WriteInt(       BankAcc2"MONEY",                     P_DATAplayerid ][ P_Deposited ]                     );
                    
INI_WriteInt(        BankAcc2"TRANSFERED",               ( tAmount P_DATAplayerid ][ P_Transfered ] )      );
                    
INI_WriteInt(         BankAcc2"LAST_TRANSFER_AMOUNT",     tAmount                                              );
                    
INI_WriteString(     BankAcc2"LAST_TRANSFER_TYPE",     "Account Transfer"                                  );
                    
INI_WriteString(     BankAcc2"LAST_TRANSFER_PLAYER",     tName                                                  );
                    
INI_WriteString(    BankAcc2"LAST_TRANSFER",          ReturnDate( )                                          );
                    
INI_CloseBankAcc2 );
                }
            }
            return 
0;
        } 
Reply


Messages In This Thread
Dialogs DOESN'T continue, but why? - by samtey - 05.09.2011, 14:09
Re: Dialogs DOESN'T continue, but why? - by Darnell - 05.09.2011, 14:13
AW: Dialogs DOESN'T continue, but why? - by samtey - 05.09.2011, 14:16
AW: Dialogs DOESN'T continue, but why? - by Joshua_Turnerz - 05.09.2011, 14:57
AW: Dialogs DOESN'T continue, but why? - by samtey - 05.09.2011, 15:04
Re: Dialogs DOESN'T continue, but why? - by Wesley221 - 05.09.2011, 15:07
AW: Dialogs DOESN'T continue, but why? - by samtey - 05.09.2011, 15:11
Re: Dialogs DOESN'T continue, but why? - by Wesley221 - 05.09.2011, 15:14
AW: Dialogs DOESN'T continue, but why? - by samtey - 05.09.2011, 15:42
Re: Dialogs DOESN'T continue, but why? - by Wesley221 - 05.09.2011, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)