18.05.2013, 08:23
Quote:
How can I do that? Since every player will have different list so i cant listitem 0++.
I tried this and now there is just one message but Wallet1 gives Wallet1 message, Wallet3 gives Wallet2 message. |
pawn Код:
case DIALOG_P:
{
if(response)
{
if(!strcmp(inputtext, Wallet[playerid], true) && strlen(inputtext) == strlen(Wallet[playerid]))
{
SendClientMessage(playerid,COLOR_WHITE2,"You Picked Wallet1");
}
else if(!strcmp(inputtext, Wallet2[playerid], true) && strlen(inputtext) == strlen(Wallet2[playerid]))
{
SendClientMessage(playerid,COLOR_WHITE2,"You Picked Wallet2");
}
else if(!strcmp(inputtext, Wallet3[playerid], true) && strlen(inputtext) == strlen(Wallet3[playerid]))
{
SendClientMessage(playerid,COLOR_WHITE2,"You Picked Wallet3");
}
}