SA-MP Forums Archive
Dialog List Not Working! Help Please - 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: Dialog List Not Working! Help Please (/showthread.php?tid=395619)



Dialog List Not Working! Help Please - Threshold - 27.11.2012

Greetings!

Hello, I added commands into the commands list Dialog. But the string got too long. So i decided to use strcat .. When i compile i get no errors or warnings. But in game nothing appears when i use the command. Cant seem to see whats wrong here..

Quote:

CMD:teleports(playerid, params[])
{
new string[300];
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Drift Teleports", "", "Okay", "");
strcat(string, "{00FFFF}======== -( Drifts )- ========\n{FFFF00}/drifthill\n/drift1-[53]\n/prodrift\n/circle1-[8]\n{00FFFF}======== -( Tune )- ========\n{FFFF00}/arch\n/fender\n/loco\n (Same As /Tune)\n");
strcat(string, "/oceandrift\n{00FFFF} ======== -( Cities )- ========\n{FFFF00}/sf\n/ls\n/lv\n{00FFFF}======== -( Airports )- ========\n{FFFF00}/lsa\n/lva\n/sfa\n{00FFFF}======== -( Other )- ========\n{FFFF00}/drag\n");
strcat(string, "{00FFFF}======== -( Parkour )- ========\n{FFFF00}/nrgparkour");
return 1;




Re: Dialog List Not Working! Help Please - Threshold - 27.11.2012

Close. I found the mistake.


Re: Dialog List Not Working! Help Please - maramizo - 27.11.2012

pawn Код:
CMD:teleports(playerid, params[])
{
    new string[300];
    strcat(string, "{00FFFF}======== -( Drifts )- ========\n{FFFF00}/drifthill\n/drift1-[53]\n/prodrift\n/circle1-[8]\n{00FFFF}======== -( Tune )- ========\n{FFFF00}/arch\n/fender\n/loco\n (Same As /Tune)\n");
    strcat(string, "/oceandrift\n{00FFFF} ======== -( Cities )- ========\n{FFFF00}/sf\n/ls\n/lv\n{00FFFF}======== -( Airports )- ========\n{FFFF00}/lsa\n/lva\n/sfa\n{00FFFF}======== -( Other )- ========\n{FFFF00}/drag\n");
    strcat(string, "{00FFFF}======== -( Parkour )- ========\n{FFFF00}/nrgparkour");
    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Drift Teleports", string, "Okay", "Cancel"); //First off, the string should be set before the dialog. And this line had an error.
    return 1;
}