Question about dialogs. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about dialogs. (
/showthread.php?tid=436174)
Question about dialogs. -
Chasm - 10.05.2013
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
Re: Question about dialogs. -
Konewka - 10.05.2013
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.
Re: Question about dialogs. -
Chasm - 10.05.2013
Okay, thanks for your answer! ;p