20.06.2012, 07:28
pawn Код:
if ( !strcmp( cmdtext, "/bank" ) )
{
if(!IsPlayerInRangeOfPoint(playerid,10.0,2316.6208,-8.2280,26.7422)) return SendClientMessage(playerid,0xD6D6D6AA,"You are not inside the bank");
{
INI_ParseFile( ReturnBankingName( playerid ), "ParseReceived", .bExtra = true, .extra = playerid );
if ( fexist( ReturnBankingName( playerid ) ) && !P_DATA[ playerid ][ P_Logged ] )
ShowPlayerDialog( playerid, BANK_LOGIN, DIALOG_STYLE_INPUT, ""COL_ALL"Banking System: {FFFFFF}Login", ""COL_GREY"Please insert the password of your Bank Account", "Login", "Exit");
else if ( !fexist( ReturnBankingName( playerid ) ) )
ShowPlayerDialog( playerid, BANK_CREATE, DIALOG_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_DATA[ playerid ][ P_Logged ] && !GetPVarInt( playerid, "MoneyReceived" ) )
ShowPlayerDialog( playerid, BANK, DIALOG_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_DATA[ playerid ][ P_Logged ] == 1 && GetPVarInt( playerid, "MoneyReceived" ) == 1 )
ShowPlayerDialog( playerid, BANK, DIALOG_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;
}
why is that so?