CMD: Can you fix the brackets?
#1

Someone..?
Код:
CMD:atm(playerid, params[])
{
	if(!IsAtATM(playerid))
	{
	    SendClientMessageEx(playerid, COLOR_GREY, "   You are not at an ATM!");
	    return 1;
	}
	ShowPlayerDialog(playerid,ATMSYSTEM,DIALOG_STYLE_LIST,"ATM System","Withdraw Money\nDeposit Money\nMy Balance\nWiretransfer","Done","Cancel");
	return 1;
	}
Reply
#2

This piece of code is ok, you probably open a bracket before these lines you never close
Reply
#3

Having a hard time defining "fix", but if you mean you have a warning of loose indentation, the below should fix this.

pawn Код:
CMD:atm(playerid, params[])
{
    if(!IsAtATM(playerid))
    {
        SendClientMessageEx(playerid, COLOR_GREY, "   You are not at an ATM!");
        return 1;
    }
    ShowPlayerDialog(playerid,ATMSYSTEM,DIALOG_STYLE_LIST,"ATM System","Withdraw Money\nDeposit Money\nMy Balance\nWiretransfer","Done","Cancel");
    return 1;
}
Reply
#4

Код:
CMD:atm(playerid, params[])
{
    if(IsAtATM(playerid))
    ShowPlayerDialog(playerid,ATMSYSTEM,DIALOG_STYLE_LIST,"ATM System","Withdraw Money\nDeposit Money\nMy Balance\nWiretransfer","Done","Cancel");
    else SendClientMessageEx(playerid, COLOR_GREY, "   You are not at an ATM!");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)