Question about dialogs.
#1

Hey.

So, i want skill/job choosing dialog to appear only for Civilians.

But..

I tried this. :

Quote:

public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_CIVI)
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Please choose a job/skill.", "Trucker\nThief\nRapist", "Done", "");
return 1;
}

It didn't work, it doesn't show dialogs at all.

But if i put if(gTeam[playerid] == TEAM_COPS) instead it shows dialog for both teams.

But i only want dialog to appear for civilians
Reply
#2

It's either you wrote something wrong when choosing what team should the player join or there is a problem with your ShowPlayerDialog ID, search for it in the code and check it out if the ID 1 isn't used already. In the future, try to provide more of your code so we can help you out.
Reply
#3

Okay, thanks for your answer! ;p
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)