Problem dialog
#1

PHP код:
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26168 -- 26178) : error 075input line too long (after substitutions)
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26179) : error 017undefined symbol "Motiv"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26179) : error 029invalid expressionassumed zero
C
:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26179) : error 017undefined symbol "tPret"
C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(26179) : fatal error 107too many error messages on one line 
PHP код:
ShowPlayerDialog(playerid619DIALOG_STYLE_TABLIST_HEADERS"Selecteaza amenda:",
                
"Motiv\tPret\tPermis\n\
                1. Folosire telefon la volan\t$5000\tNone\n\
                2. Condus fara centura\t10000$\tNone\n\
                3. Condus neregulamentar\t25000$\tConfiscare\n\
                4. Oprire|Stationare|Parcare Neregulamentara\t5.000$\tNone\n\
                5. Conducerea vehiculelor cu roti sparte\t$10.000$\tNone\n\
                6. Folosire NOS\t10000$\tConfiscare\n\
                7. Folosire Hidraulice\t10000$\tConfiscare\n\
                8. Faruri stinse (dupa ora 21:00)\t10000$\tNone\n\
                9. Condus sub influenta alcoolului\t20000$\tConfiscare\n\
                10.Depasirea limitei de viteza cu 10-50 km/h\t10000$\tNone\n\
                11.Depasirea limitei de viteza cu 50+ km/h\t20000$\tConfiscare"
,
                
"Select""Cancel"); 
Reply
#2

Please highlight which lines are giving you the errors.
Reply
#3

pawn Код:
new String[1024];
    strcat(String, "Motiv\tPret\tPermis\n\");
    strcat(String, "
1. Folosire telefon la volan\t$5000\tNone\n\");
    strcat(String, "
2. Condus fara centura\t10000$\tNone\n\");
    strcat(String, "
3. Condus neregulamentar\t25000$\tConfiscare\n\");
    strcat(String, "
4. Oprire|Stationare|Parcare Neregulamentara\t5.000$\tNone\n\");
    strcat(String, "
5. Conducerea vehiculelor cu roti sparte\t$10.000$\tNone\n\");
    strcat(String, "
6. Folosire NOS\t10000$\tConfiscare\n\");
    strcat(String, "
7. Folosire Hidraulice\t10000$\tConfiscare\n\");
    strcat(String, "
8. Faruri stinse (dupa ora 21:00)\t10000$\tNone\n\");
    strcat(String, "
9. Condus sub influenta alcoolului\t20000$\tConfiscare\n\");
    strcat(String, "
10.Depasirea limitei de viteza cu 10-50 km/h\t10000$\tNone\n\");
    strcat(String, "
11.Depasirea limitei de viteza cu 50+ km/h\t20000$\tConfiscare");
   
    ShowPlayerDialog(playerid, 619, DIALOG_STYLE_TABLIST_HEADERS, "
Selecteaza amenda:", String, "Select", "Cancel");
Reply
#4

What the hell is \t ??
Reply
#5

Quote:
Originally Posted by Phyzic
Посмотреть сообщение
What the hell is \t ??
\t is an escape sequence. It is basically equivalent to 6 spaces.
Reply
#6

The input you specified is simply too long to be processed by one line of code (even though you split it into more lines, it's still counted as one by the compiler).

You can use string functions to form the larger text (e.g. format or strins) or alternatively you can use Zeex's compiler which fixes this issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)