19.11.2013, 05:10
Hello,
I have a question for you all. How could I possible do something like this:
If a player types /bank, then it shows "Withdraw\nDeposit\nTransfer", then I did this:
How could it grab the ID from the dialog?
EG: If there was this:
player1
player2
player3
player10
If playerid's 4, 5, 6, 7, 8 and 9 aren't connected, and I wanted player10, which was id 10, how could I grab the ID?
Because it would usually be:
for the ID's, but that won't work in this case. Thanks!
I have a question for you all. How could I possible do something like this:
If a player types /bank, then it shows "Withdraw\nDeposit\nTransfer", then I did this:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
format(string, sizeof(string), "%s%s\n", string, GetName);
}
}
ShowPlayerDialog(playerid, DIALOG_TRANSFER, DIALOG_STYLE_LIST, "Transfer", string, "Transfer", "");
EG: If there was this:
player1
player2
player3
player10
If playerid's 4, 5, 6, 7, 8 and 9 aren't connected, and I wanted player10, which was id 10, how could I grab the ID?
Because it would usually be:
pawn Код:
case 0:
case 1:
case 2: