How select players in dialog
#1

I tried to make code which sends message to player who i select from dialog but it doesn't work. :I
Can anyone help me?
pawn Код:
new msgline[256];
new strtext[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, psame, sizeof(psame));
format(msgline,sizeof(msgline),"%s",psame);
haxedplayer[playerid] = i;
strcat(strtext, "\n");
strcat(strtext, msgline);
   
}
   
}
ShowPlayerDialog(playerid,723,DIALOG_STYLE_LIST,"Bank hack program",strtext,"Option 1", "Option 2");
}
pawn Код:
switch(dialogid == 723) // Lookup the dialogid
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
return 1; // We processed it
}
 SendClientMessage(haxedplayer[playerid],COLOR_RED,"LOOOL");
}
}
Reply


Messages In This Thread
How select players in dialog - by liinor - 27.05.2012, 20:35
Re: How select players in dialog - by FalconX - 27.05.2012, 20:47
Re: How select players in dialog - by liinor - 27.05.2012, 20:53
Re: How select players in dialog - by mati233 - 28.05.2012, 00:06
Re: How select players in dialog - by Jefff - 28.05.2012, 00:49
Re: How select players in dialog - by liinor - 28.05.2012, 13:09

Forum Jump:


Users browsing this thread: 2 Guest(s)