[HELP] Dialog to long?
#1

Hi there, heres my problem:
I've got this:
pawn Код:
22372|if(strcmp(cmd, "/help", true) == 0)
    22373|{
    22374|  god[playerid] = 1;
22375|ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Do you accept our rules?",
    22376|"\
    22377|*** ACCOUNT *** /rules /login /stats /buylevel /upgrade\n\
    22378|*** CHAT *** (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise\n\
    22379|(/f)amily /me /togooc /tognews /togfam /togwhisper /map /fuel\n\
    22380|                                                           \n\
    22381|*** BANK ***(buggy) /balance /withdraw /deposit /wiretransfer\n\
    22382|*** EXTRA *** /find /free /sex /selldrugs /dropcar /paper /papers \n\
    22383|/live /news [text] /repair /refill /duty /guard\n\
    22384|\n\
    22385|*** EXTRA *** /materials /sellgun /sellcar /fight /boxstats /fare\n\
    22386|/papers /bring /deliver /funhelp /Ccolor /turboturbo\n\
    22387|                                               \n\
    22388|*** JOB *** /find /free /sex /selldrugs /dropcar /paper /papers /live /news[txt]\n\
    22389|/repair /refill /duty /guard /materials /sellgun /fight /boxstats /fare /papers /bring\n\
    22390|/deliver\n\
    22391|*** SAPD *** (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /tazer\n\
    22392|*** SAPD *** /frisk /take /ticket (/gov)ernment /deliver /camera /ram\n\
    22393|*** SAMD *** (/r)adio (/d)epartments /heal /duty\n\
    22394|*** ADMIN *** (/a)dmin (/ah)elp\n\
    22395|*** OTHER *** /cellphonehelp /businesshelp /leaderhelp /fishhelp /cookhelp \n\
    22396|/irchelp /tune /carhelp /generalhelp\n\
    22397|Hope this was clear, also check /rules or /abusehelp"
, "Continue", "Continue");
    22398|return 1;
    22399|}
I get these error's
pawn Код:
******.inc(**) : warning ***
***(22375 -- 22385) : error 075: input line too long (after substitutions)
***(22386) : error 017: undefined symbol "rules"
***(22386) : error 029: invalid expression, assumed zero
***(22386) : error 017: undefined symbol "n"
***22386) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
so how could i solve these?
Reply
#2

This dialog leght is way to long try making it shorter
Reply
#3

Quote:
Originally Posted by oNx
This dialog leght is way to long try making it shorter
How? should i make a NEXT> button or what?
Reply
#4

Quote:
Originally Posted by WThieves
Quote:
Originally Posted by oNx
This dialog leght is way to long try making it shorter
How? should i make a NEXT> button or what?
Yes make a next button or if(dialogid == id && response)
Reply
#5

Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by WThieves
Quote:
Originally Posted by oNx
This dialog leght is way to long try making it shorter
How? should i make a NEXT> button or what?
Yes make a next button or if(dialogid == id && response)
what do you mean with that??]
Isn't there a way to change the dialog style, becouse in a car spawner you can have over a hundred rules.
Reply
#6

It isn't too many characters, it's too long for the compiler to work with it.
So break it down into multiple functions
pawn Код:
new string[1024];
format(string,1024,"%s*** ACCOUNT *** /rules /login /stats /buylevel /upgrade\n",string);
format(string,1024,"%s*** CHAT *** (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise\n",string);
format(string,1024,"%s(/f)amily /me /togooc /tognews /togfam /togwhisper /map /fuel\n",string);
//continue....

ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Do you accept our rules?",string, "Continue", "Continue");
Reply
#7

Quote:
Originally Posted by Joe Staff
It isn't too many characters, it's too long for the compiler to work with it.
So break it down into multiple functions
pawn Код:
new string[1024];
format(string,1024,"%s*** ACCOUNT *** /rules /login /stats /buylevel /upgrade\n",string);
format(string,1024,"%s*** CHAT *** (/w)hisper (/o)oc (/s)hout (/c)lose (/l)ocal (/b) (/ad)vertise\n",string);
format(string,1024,"%s(/f)amily /me /togooc /tognews /togfam /togwhisper /map /fuel\n",string);
//continue....

ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Do you accept our rules?",string, "Continue", "Continue");
does this still show them in a box??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)