warning 225: unreachable code
#1

Hello there a small problem but idk how to fix it :/

ERROR:-

Код:
warning 225: unreachable code
PHP код:
public OnPlayerCommandTextplayeridcmdtext[ ] )
{
    if ( !
strcmpcmdtext"/bank" ) )
    if (
IsPlayerInRangeOfPoint(playerid7.02316.6213,-7.3885,26.7422)) return SendClientMessage(playerid, -1"You must be in bank.");
    {
        
INI_ParseFileReturnBankingNameplayerid ), "ParseReceived", .bExtra true, .extra playerid );
        if ( 
fexistReturnBankingNameplayerid ) ) && !P_DATAplayerid ][ P_Logged ] )
            
ShowPlayerDialogplayeridBANK_LOGINDIALOG_STYLE_INPUT""COL_ALL"Banking System: {FFFFFF}Login"""COL_GREY"Please insert the password of your Bank Account""Login""Exit");
        else if ( !
fexistReturnBankingNameplayerid ) ) )
            
ShowPlayerDialogplayeridBANK_CREATEDIALOG_STYLE_MSGBOX""COL_ALL"Banking System""{FFFFFF}You don't have a "COL_ALL"Banking Account{FFFFFF}\nWould you like to create?""Yes""Exit");
        else if ( 
P_DATAplayerid ][ P_Logged ] && !GetPVarIntplayerid"MoneyReceived" ) )
            
ShowPlayerDialogplayeridBANKDIALOG_STYLE_LIST""COL_ALL"Banking System""{FFF1EB}Deposit\n\
                                                                  {FFF1EB}Withdraw\n\
                                                                  {FFF1EB}Transfer\n\
                                                                  {FFF1EB}Account Information\n\
                                                                  {FFF1EB}Banking System Information\n\
                                                                  {FFF1EB}Cancel account\n\
                                                                  {D9997E}Exit"
"Select""");
        else if ( 
P_DATAplayerid ][ P_Logged ] == && GetPVarIntplayerid"MoneyReceived" ) == )
            
ShowPlayerDialogplayeridBANKDIALOG_STYLE_LIST""COL_ALL"Banking System""{FFF1EB}Deposit\n\
                                                                  {FFF1EB}Withdraw\n\
                                                                  {FFF1EB}Transfer\n\
                                                                  {FFF1EB}Account Information\n\
                                                                  {FFF1EB}Banking System Information\n\
                                                                  {FFF1EB}Cancel account\n\
                                                                  {9CFFC2}Receive Transfer\n\
                                                                  {D9997E}Exit"
"Select""");
        return 
1;
    }
    return 
0;

Reply
#2

your problem is here
PHP код:
if ( !strcmpcmdtext"/bank" ) ) 
please use "{}" for if statements you dident used even once
Reply
#3

Quote:
Originally Posted by khRamin78
Посмотреть сообщение
your problem is here
PHP код:
if ( !strcmpcmdtext"/bank" ) ) 
please use "{}" for if statements you dident used even once
?? Can you edit my code then past it ?
Reply
#4

PHP код:
public OnPlayerCommandTextplayeridcmdtext[ ] ) 

    if ( !
strcmpcmdtext"/bank" ) )
{
    if (
IsPlayerInRangeOfPoint(playerid7.02316.6213,-7.3885,26.7422)) return SendClientMessage(playerid, -1"You must be in bank."); 
    { 
        
INI_ParseFileReturnBankingNameplayerid ), "ParseReceived", .bExtra true, .extra playerid ); 
        if ( 
fexistReturnBankingNameplayerid ) ) && !P_DATAplayerid ][ P_Logged ] ) 
            
ShowPlayerDialogplayeridBANK_LOGINDIALOG_STYLE_INPUT""COL_ALL"Banking System: {FFFFFF}Login"""COL_GREY"Please insert the password of your Bank Account""Login""Exit"); 
        else if ( !
fexistReturnBankingNameplayerid ) ) ) 
            
ShowPlayerDialogplayeridBANK_CREATEDIALOG_STYLE_MSGBOX""COL_ALL"Banking System""{FFFFFF}You don't have a "COL_ALL"Banking Account{FFFFFF}\nWould you like to create?""Yes""Exit"); 
        else if ( 
P_DATAplayerid ][ P_Logged ] && !GetPVarIntplayerid"MoneyReceived" ) ) 
            
ShowPlayerDialogplayeridBANKDIALOG_STYLE_LIST""COL_ALL"Banking System""{FFF1EB}Deposit\n\ 
                                                                  {FFF1EB}Withdraw\n\ 
                                                                  {FFF1EB}Transfer\n\ 
                                                                  {FFF1EB}Account Information\n\ 
                                                                  {FFF1EB}Banking System Information\n\ 
                                                                  {FFF1EB}Cancel account\n\ 
                                                                  {D9997E}Exit"
"Select"""); 
        else if ( 
P_DATAplayerid ][ P_Logged ] == && GetPVarIntplayerid"MoneyReceived" ) == 
            
ShowPlayerDialogplayeridBANKDIALOG_STYLE_LIST""COL_ALL"Banking System""{FFF1EB}Deposit\n\ 
                                                                  {FFF1EB}Withdraw\n\ 
                                                                  {FFF1EB}Transfer\n\ 
                                                                  {FFF1EB}Account Information\n\ 
                                                                  {FFF1EB}Banking System Information\n\ 
                                                                  {FFF1EB}Cancel account\n\ 
                                                                  {9CFFC2}Receive Transfer\n\ 
                                                                  {D9997E}Exit"
"Select"""); 
        return 
1
    }
return 
1;
}
    return 
0

Reply
#5

Quote:
Originally Posted by Spoookymon
Посмотреть сообщение
PHP код:
public OnPlayerCommandTextplayeridcmdtext[ ] ) 

    if ( !
strcmpcmdtext"/bank" ) )
{
    if (
IsPlayerInRangeOfPoint(playerid7.02316.6213,-7.3885,26.7422)) return SendClientMessage(playerid, -1"You must be in bank."); 
    { 
        
INI_ParseFileReturnBankingNameplayerid ), "ParseReceived", .bExtra true, .extra playerid ); 
        if ( 
fexistReturnBankingNameplayerid ) ) && !P_DATAplayerid ][ P_Logged ] ) 
            
ShowPlayerDialogplayeridBANK_LOGINDIALOG_STYLE_INPUT""COL_ALL"Banking System: {FFFFFF}Login"""COL_GREY"Please insert the password of your Bank Account""Login""Exit"); 
        else if ( !
fexistReturnBankingNameplayerid ) ) ) 
            
ShowPlayerDialogplayeridBANK_CREATEDIALOG_STYLE_MSGBOX""COL_ALL"Banking System""{FFFFFF}You don't have a "COL_ALL"Banking Account{FFFFFF}\nWould you like to create?""Yes""Exit"); 
        else if ( 
P_DATAplayerid ][ P_Logged ] && !GetPVarIntplayerid"MoneyReceived" ) ) 
            
ShowPlayerDialogplayeridBANKDIALOG_STYLE_LIST""COL_ALL"Banking System""{FFF1EB}Deposit\n\ 
                                                                  {FFF1EB}Withdraw\n\ 
                                                                  {FFF1EB}Transfer\n\ 
                                                                  {FFF1EB}Account Information\n\ 
                                                                  {FFF1EB}Banking System Information\n\ 
                                                                  {FFF1EB}Cancel account\n\ 
                                                                  {D9997E}Exit"
"Select"""); 
        else if ( 
P_DATAplayerid ][ P_Logged ] == && GetPVarIntplayerid"MoneyReceived" ) == 
            
ShowPlayerDialogplayeridBANKDIALOG_STYLE_LIST""COL_ALL"Banking System""{FFF1EB}Deposit\n\ 
                                                                  {FFF1EB}Withdraw\n\ 
                                                                  {FFF1EB}Transfer\n\ 
                                                                  {FFF1EB}Account Information\n\ 
                                                                  {FFF1EB}Banking System Information\n\ 
                                                                  {FFF1EB}Cancel account\n\ 
                                                                  {9CFFC2}Receive Transfer\n\ 
                                                                  {D9997E}Exit"
"Select"""); 
        return 
1
    }
return 
1;
}
    return 
0

ty worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)