29.10.2013, 18:41
Hello everyone! So how you see I need some help. This is my code:
So yes, when I write "/help", I see first dialog, when I write "/help gangs" I see gangs dialog, but when I write "/help race" I see gangs dialog too. So this is the problem. Waiting for help! Thanks
)
Код:
COMMAND:help(playerid,params[], gangs, race) { if(sscanf(params,"s",params)) return ShowPlayerDialog(playerid , 1 , DIALOG_STYLE_MSGBOX , "Commands" , "Bla bla" , "Good" , "" ); if(gangs) { new string[1024]; strcat(string,"Here will be long text.."); ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Gangs commands",string,"Good",""); return 1; } if(race) { new string[1024]; strcat(string,"Here will be long text.."); ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Race commands",string,"Good",""); return 1; } return 1; }
