SA-MP Forums Archive
Problem dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem dialog (/showthread.php?tid=587693)



Problem dialog - Jimmi - 01.09.2015

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"); 



Re: Problem dialog - Luke_James - 01.09.2015

Please highlight which lines are giving you the errors.


Re: Problem dialog - xVIP3Rx - 01.09.2015

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");



Re: Problem dialog - Phyzic - 02.09.2015

What the hell is \t ??


Re: Problem dialog - SpaceX - 02.09.2015

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


Re: Problem dialog - Mmartin - 02.09.2015

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.