30.04.2013, 11:53
this code should suppose to work but it didn't worked
it don't even give me any compile error
pawn Код:
new Map1[MAX_PLAYERS];
new Map2[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid)
{
if(Map1[playerid] == 1)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Teams", "Assualters\nDefenders", "Select","");
}
else if(Map2[playerid] == 1)
{
ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Teams", "Assualters\nDefenders", "Select","");
}
return 1;
}