Dialog List Not Working! Help Please
#1

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;

Reply
#2

Close. I found the mistake.
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)