Max character Dialog Style List?
#1

Is there any way to max the length of the character if using this dialog style list? Anyway I am just using 1 color, maybe I can just define the color to this dialog is that possible??

pawn Код:
if(strcmp(cmd,"/a",true)==0)
    {
        ShowPlayerDialog(playerid, ANIMS_DIALOG, DIALOG_STYLE_LIST, "Animation List", "{ADD8E6}Sit (/sit)\n{ADD8E6}Relax (/relax)\n{ADD8E6}Dance (/dance)\n{ADD8E6}Drunk (/drunk)\n{ADD8E6}Cigar (/cigar)\nPiss (/piss)\nHands Up (/handsup)\nLay (/lay)\nKiss (/kiss)\nWank (/wank)\nLaugh (/laugh)\nVomit (/vomit)\nEat (/eat)\nTalk (/talk)\nHide (/hide)\nWave (/wave)\nTaichi (/taichi)\nCrack (/crack)\nDeal (/deal)\nFucku (/fucku)\nBeer (/beer)\nSexy (/sexy)\nSlap Ass (/slapass)\nRob (/rob)\nArrest (/arrest)\nMedic (/medic)", "Select", "Cancel");
        return 1;
    }
Well i get warnings when compiling..

Код:
error 075: input line too long (after substitutions)
error 037: invalid string (possibly non-terminated string)
error 017: undefined symbol "ADD8E6"
error 017: undefined symbol "Sit"
error 107: too many error messages on one line
Reply
#2

Try :
pawn Код:
if(strcmp(cmd,"/a",true)==0)
{
    ShowPlayerDialog(playerid, ANIMS_DIALOG, DIALOG_STYLE_LIST, "Animation List",
    "{ADD8E6}Sit (/sit)\n{ADD8E6}Relax (/relax)\n{ADD8E6}Dance (/dance)\n{ADD8E6}Drunk (/drunk)\n{ADD8E6}Cigar (/cigar)\nPiss (/piss)\nHands Up (/handsup)\nLay (/lay)\nKiss (/kiss)\nWank (/wank)\nLaugh (/laugh)\nVomit (/vomit)\nEat (/eat)\nTalk (/talk)\nHide (/hide)\nWave (/wave)\nTaichi (/taichi)\nCrack (/crack)\nDeal (/deal)\nFucku (/fucku)\nBeer (/beer)\nSexy (/sexy)\nSlap Ass (/slapass)\nRob (/rob)\nArrest (/arrest)\nMedic (/medic)", "Select", "Cancel");
    return 1;
}
Reply
#3

use strcat
e.g
pawn Код:
new string[600];
strcat(string, "Some here");
strcat(string, "and Some here");
strcat(string, "if too much some here \nhere");
Reply
#4

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Try :
pawn Код:
if(strcmp(cmd,"/a",true)==0)
{
    ShowPlayerDialog(playerid, ANIMS_DIALOG, DIALOG_STYLE_LIST, "Animation List",
    "{ADD8E6}Sit (/sit)\n{ADD8E6}Relax (/relax)\n{ADD8E6}Dance (/dance)\n{ADD8E6}Drunk (/drunk)\n{ADD8E6}Cigar (/cigar)\nPiss (/piss)\nHands Up (/handsup)\nLay (/lay)\nKiss (/kiss)\nWank (/wank)\nLaugh (/laugh)\nVomit (/vomit)\nEat (/eat)\nTalk (/talk)\nHide (/hide)\nWave (/wave)\nTaichi (/taichi)\nCrack (/crack)\nDeal (/deal)\nFucku (/fucku)\nBeer (/beer)\nSexy (/sexy)\nSlap Ass (/slapass)\nRob (/rob)\nArrest (/arrest)\nMedic (/medic)", "Select", "Cancel");
    return 1;
}
It gives more length but in the middle of adding color it gave me warning, same warnings.
Reply
#5

Quote:
Originally Posted by Rudy_
Посмотреть сообщение
use strcat
e.g
pawn Код:
new string[600];
strcat(string, "Some here");
strcat(string, "and Some here");
strcat(string, "if too much some here \nhere");
i guess I better use this one
Reply
#6

I tested this, and no errors.

Try this
pawn Код:
ShowPlayerDialog(playerid, ANIMS_DIALOG, DIALOG_STYLE_LIST, "Animation List",
    "{ADD8E6}Sit (/sit)\n{ADD8E6}Relax (/relax)\n{ADD8E6}Dance (/dance)\n{ADD8E6}Drunk (/drunk)\n{ADD8E6}Cigar (/cigar)\nPiss (/piss)\nHands Up (/handsup)\nLay (/lay)\nKiss (/kiss)\nWank (/wank)\nLaugh (/laugh)\nVomit (/vomit)\nEat (/eat)\nTalk (/talk)\nHide (/hide)\nWave (/wave)\nTaichi (/taichi)\nCrack (/crack)\nDeal (/deal)\nFucku (/fucku)\nBeer (/beer)\nSexy (/sexy)\nSlap Ass (/slapass)\nRob (/rob)\nArrest (/arrest)\nMedic (/medic)"
    , "Select", "Cancel");
If don't work, use strcat, like Rudy_ says
Reply
#7

Hm... i suggest Viniborn's one, Because i'm having problems with strcat
OT: Viniborn can you help me too :S
Edit: isn't it Strcat? instead of strcant
Reply
#8

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
I tested this, and no errors.

Try this
pawn Код:
ShowPlayerDialog(playerid, ANIMS_DIALOG, DIALOG_STYLE_LIST, "Animation List",
    "{ADD8E6}Sit (/sit)\n{ADD8E6}Relax (/relax)\n{ADD8E6}Dance (/dance)\n{ADD8E6}Drunk (/drunk)\n{ADD8E6}Cigar (/cigar)\nPiss (/piss)\nHands Up (/handsup)\nLay (/lay)\nKiss (/kiss)\nWank (/wank)\nLaugh (/laugh)\nVomit (/vomit)\nEat (/eat)\nTalk (/talk)\nHide (/hide)\nWave (/wave)\nTaichi (/taichi)\nCrack (/crack)\nDeal (/deal)\nFucku (/fucku)\nBeer (/beer)\nSexy (/sexy)\nSlap Ass (/slapass)\nRob (/rob)\nArrest (/arrest)\nMedic (/medic)"
    , "Select", "Cancel");
If don't work, use strcant, like Rudy_ says
Try this, this will give you errors , well i have no choice but to use strcat. +rep
Код:
	if(strcmp(cmd,"/a",true)==0)
	{
	    ShowPlayerDialog(playerid, ANIMS_DIALOG, DIALOG_STYLE_LIST, "Animation List",
	    "{ADD8E6}Sit (/sit)\n{ADD8E6}Relax (/relax)\n{ADD8E6}Dance (/dance)\n{ADD8E6}Drunk (/drunk)\n{ADD8E6}Cigar (/cigar)\n{ADD8E6}Piss (/piss)\n{ADD8E6}Hands Up (/handsup)\n{ADD8E6}Lay (/lay)\n{ADD8E6}Kiss (/kiss)\n{ADD8E6}Wank (/wank)\n{ADD8E6}Laugh (/laugh)\n{ADD8E6}Vomit (/vomit)\n{ADD8E6}Eat (/eat)\n{ADD8E6}Talk (/talk)\nHide (/hide)\nWave (/wave)\nTaichi (/taichi)\nCrack (/crack)\nDeal (/deal)\nFucku (/fucku)\nBeer (/beer)\nSexy (/sexy)\nSlap Ass (/slapass)\nRob (/rob)\nArrest (/arrest)\nMedic (/medic)"
	    , "Select", "Cancel");
	}
Reply
#9

Anyway thanks both +rep! Fixed!

pawn Код:
if(strcmp(cmd,"/a",true)==0)
    {
     new string[700];
        strcat(string,"{ADD8E6}Sit (/sit)\n{ADD8E6}Relax (/relax)\n{ADD8E6}Dance (/dance)\n{ADD8E6}Drunk (/drunk)\n{ADD8E6}Cigar (/cigar)");
        strcat(string,"\n{ADD8E6}Piss (/piss)\n{ADD8E6}Hands Up (/handsup)\n{ADD8E6}Lay (/lay)\n{ADD8E6}Kiss (/kiss)\n{ADD8E6}Wank (/wank)");
        strcat(string,"\n{ADD8E6}Laugh (/laugh)\n{ADD8E6}Vomit (/vomit)\n{ADD8E6}Eat (/eat)\n{ADD8E6}Talk (/talk)\n{ADD8E6}Hide (/hide)");
        strcat(string,"\n{ADD8E6}Wave (/wave)\n{ADD8E6}Taichi (/taichi)\n{ADD8E6}Crack (/crack)\n{ADD8E6}Deal (/deal)\n{ADD8E6}Fucku (/fucku)");
        strcat(string,"\n{ADD8E6}Beer (/beer)\n{ADD8E6}Sexy (/sexy)\n{ADD8E6}Slap Ass (/slapass)");
        strcat(string,"\n{ADD8E6}Rob (/rob)\n{ADD8E6}Arrest (/arrest) \n{ADD8E6}Medic (/medic)");
        ShowPlayerDialog(playerid, ANIMS_DIALOG, DIALOG_STYLE_LIST, "{ADD8E6}Animation List", string, "Choose", "Cancel");
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)