29.01.2011, 19:28
Hey guys, I'm making a MDC system.
But something in this code blocks to open the dialog 22
So what blocks to show dialog 22 in case:1 ?
But something in this code blocks to open the dialog 22
pawn Код:
switch(dialogid) // Lookup the dialogid
{
case 20:
{
if(!response)
{
return 1;
}
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,21,DIALOG_STYLE_INPUT,"Civ.Information","Fill in a playerid","Ok","Cancel");
}
case 1:
{
new string[256];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][wantedlevel] == 1)
{
new name[128];
GetPlayerName(i,name,128);
format(string, 256, "%s", name);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,"Suspects",string,"Ok","Cancel");
}
}
}
}
}
}
}