dialog help when run get error
#1

if(strcmp(cmdtext,"/teles",true)==0)
{
ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX,"{FFFFFF} Teleports","{00FFFF}Stunt:/lvair /lsair /sfair /hp /bs /aa /bbs /as /fs /ds /lsaa.\nJump:/bsj1-9 /bj1-7 /hj /gj /pj /dj /chill /lj /aj /ij /xj.\nDrift:/drift1-6 /drag1-3 /driftrocky.\nDM:/dm1-8 /gdm /oh /grovedm /gldm /vdm /sdm /cs /hdm /boxdm.\nFun:/2c /lc /tp /fd1-2 /df /sd /sc.\nDerby:/derby1-6.\nParkour:/parkour1-6.\nCity:/city1-4.\nCountry:/ls /lv /sf. \nInterior: /warhouse1-2 /house1-10 \Others:/relax","Ok","Close");
return 1;
}
error 027:invalid character constant
error 027:invalid character constant
i need to make long but how to make it long without error
Reply
#2

pawn Код:
if(strcmp(cmdtext,"/teles",true)==0)
    {
        new dialog0[256],dialog1[256],dialog2[256],dialog3[256],dialog4[256];
        dialog0 = "{00FFFF}Stunt:/lvair /lsair /sfair /hp /bs /aa /bbs /as /fs /ds /lsaa.\n";
        dialog1 = "Jump:/bsj1-9 /bj1-7 /hj /gj /pj /dj /chill /lj /aj /ij /xj.\nDrift:/drift1-6 /drag1-3 /driftrocky.\n";
        dialog2 = "DM:/dm1-8 /gdm /oh /grovedm /gldm /vdm /sdm /cs /hdm /boxdm.\nFun:/2c /lc /tp /fd1-2 /df /sd /sc.\n";
        dialog3 = "Derby:/derby1-6.\nParkour:/parkour1-6.\nCity:/city1-4.\nCountry:/ls /lv /sf. \n";
        dialog4 = "Interior: /warhouse1-2 /house1-10 \nOthers:/relax";
        new string[1024];
        format(string,sizeof(string),"%s%s%s%s%s",dialog0,dialog1,dialog2,dialog3,dialog4);
        ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX,"{FFFFFF} Teleports",string,"Ok","Close");
        return 1;
    }
Reply
#3

pawn Код:
if(strcmp(cmdtext, "/teles", true) == 0) {
    new
        Text[ 500 ];

    strcat(Text, "{00FFFF}Stunt:/lvair /lsair /sfair /hp /bs /aa /bbs /as /fs /ds /lsaa.\nJump:/bsj1-9 /bj1-7 /hj /gj /pj /dj /chill /lj /aj /ij /xj.\nDrift:/drift1-6 /drag1-3 /driftrocky.\nDM:/dm1-8 /gdm /oh /grovedm /gldm /vdm /sdm /cs /hdm /boxdm.\n");
    strcat(Text, "Fun:/2c /lc /tp /fd1-2 /df /sd /sc.\nDerby:/derby1-6.\nParkour:/parkour1-6.\nCity:/city1-4.\nCountry:/ls /lv /sf. \nInterior: /warhouse1-2 /house1-10 \Others:/relax");
    ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{FFFFFF} Teleports", Text, "Ok", "Close");
    return 1;
}
500 is enough, because the text is less than 500
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)