04.01.2012, 05:45
Well actually i wanted to make if they enter a player ID that is connected it will work but when i enter some random things, it just works. I want to make if they type someone ID that is connected, it will work
pawn Код:
if(dialogid == 15)
{
if(response)
{
if(!IsPlayerConnected(bankerID))
{
ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"Bank","Withdraw\nDeposit\nBalance\nTransfer","Open","Close");
SendClientMessage(playerid,red,"ERROR: That ID is not connected");
}
else
{
ShowPlayerDialog(playerid,16,DIALOG_STYLE_INPUT,"Transfer","Enter the amount you want to give your cash to","Send","Back");
}
}
if(!response)
{
ShowPlayerDialog(playerid,12,DIALOG_STYLE_LIST,"Bank","Withdraw\nDeposit\nBalance\nTransfer","Open","Close");
}
return 1;
}