5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"
#1

Code:
(2143) : error 075: input line too long (after substitutions)
(2145) : error 017: undefined symbol "t"
(2145) : error 017: undefined symbol "is"
(2145) : error 017: undefined symbol "only"
(2145) : fatal error 107: too many error messages on one line

5 Errors.
Lines 2134 -2153
pawn Code:
2134        case 151://Secondary Colour Table
2135        {
2136            if(!response)
2137            {
2138                ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo\r\nComet\r\nSuper GT\r\nElegy\r\nTurismo\r\nAlpha\r\nEuros\r\nFlash\r\nJester\r\nZR-350\r\nElegant\r\nFortune\r\nSentinel\r\nStafford\r\nSultan\r\nWashington\r\nMerit","Continue","Cancel");
2139            }
2140            switch(listitem)
2141            {
2142                case 0://Red
2143                {
2144//                  ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle you you will be charged accordingly,\n If you decline this purchase you will not be charged and the vehicle will remain at the dealership for another buyer.\n\n\n{FF0000} After vehicle purchase, the vehicle is then under your care and is not covered by any dealership insurance policies.\n\n We offer every vehicle sold a temporary license plate that is only valid for one day((One payday)).", "Sign", "Decline");
2145                    ShowPlayerDialog(playerid, 126, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle","Sign","Decline");
2146                }
2147                case 1:
2148                {
2149//                  ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle you you will be charged accordingly,\n If you decline this purchase you will not be charged and the vehicle will remain at the dealership for another buyer.\n\n\n{FF0000} After vehicle purchase, the vehicle is then under your care and is not covered by any dealership insurance policies.\n\n We offer every vehicle sold a temporary license plate that is only valid for one day((One payday)).", "Sign", "Decline");
2150                    ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle","Sign","Decline");
2151                }
2152            }
2153        }
Cases 126 - 127 (if Required)
pawn Code:
case 126:
        {
            if(!response)
            {
                ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo\r\nComet\r\nSuper GT\r\nElegy\r\nTurismo\r\nAlpha\r\nEuros\r\nFlash\r\nJester\r\nZR-350\r\nElegant\r\nFortune\r\nSentinel\r\nStafford\r\nSultan\r\nWashington\r\nMerit","Continue","Cancel");
            }
            if(response)
            {
                ShowPlayerDialog(playerid, 126, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle","Sign","Decline");
            }
        }
        case 127:
        {
            if(!response)
            {
                ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo\r\nComet\r\nSuper GT\r\nElegy\r\nTurismo\r\nAlpha\r\nEuros\r\nFlash\r\nJester\r\nZR-350\r\nElegant\r\nFortune\r\nSentinel\r\nStafford\r\nSultan\r\nWashington\r\nMerit","Continue","Cancel");
            }
            if(response)
            {
                ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle","Sign","Decline");
            }
        }
Reply
#2

Use strcat

pawn Code:
new dialog[256];
strcat(dialog,"Your dialog info here1 \n");
strcat(dialog,"Your dialog info here2 \n");
strcat(dialog,"Your dialog info here3 \n");
ShowPlayerDialog(playerid,125,DIALOG_STYLE_MSGBOX,"Purchase Confirmation",dialog,"Sign", "Decline");
Reply
#3

what about this?
pawn Code:
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo\r\nComet\r\nSuper GT\r\nElegy\r\n\
Turismo\r\nAlpha\r\nEuros\r\nFlash\r\nJester\r\nZR-350\r\nElegant\r\nFortune\r\nSentinel\r\nStafford\r\nSultan\r\nWashington\r\nMerit"
,"Continue","Cancel");
Reply
#4

Quote:
Originally Posted by Crazymax
View Post
what about this?
pawn Code:
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntley\r\nBanshee\r\nBuffalo\r\nComet\r\nSuper GT\r\nElegy\r\n\
Turismo\r\nAlpha\r\nEuros\r\nFlash\r\nJester\r\nZR-350\r\nElegant\r\nFortune\r\nSentinel\r\nStafford\r\nSultan\r\nWashington\r\nMerit"
,"Continue","Cancel");
Thats not really where i am having the errors, i have used that line about 20 times and this is the only time i am getting errors

Quote:
Originally Posted by newbienoob
View Post
Use strcat

pawn Code:
new dialog[256];
strcat(dialog,"Your dialog info here1 \n");
strcat(dialog,"Your dialog info here2 \n");
strcat(dialog,"Your dialog info here3 \n");
ShowPlayerDialog(playerid,125,DIALOG_STYLE_MSGBOX,"Purchase Confirmation",dialog,"Sign", "Decline");
Does this just go in the 'case' statement?
Example:
pawn Code:
2140            switch(listitem)
2141            {
2142                case 0://Red
2143                {
2144                  new dialog[256];
                      strcat(dialog,"Your dialog info here1 \n");
                      strcat(dialog,"Your dialog info here2 \n");
                      strcat(dialog,"Your dialog info here3 \n");
                      ShowPlayerDialog(playerid,125,DIALOG_STYLE_MSGBOX,"Purchase Confirmation",dialog,"Sign", "Decline");
2145
2146                }
2147                case 1:
2148                {
2149//                  ShowPlayerDialog(playerid, 125, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle you you will be charged accordingly,\n If you decline this purchase you will not be charged and the vehicle will remain at the dealership for another buyer.\n\n\n{FF0000} After vehicle purchase, the vehicle is then under your care and is not covered by any dealership insurance policies.\n\n We offer every vehicle sold a temporary license plate that is only valid for one day((One payday)).", "Sign", "Decline");
2150                    ShowPlayerDialog(playerid, 127, DIALOG_STYLE_MSGBOX, "Purchase Confirmation", "By Signing this contract you are agreeing to purchasing this vehicle","Sign","Decline");
2151                }
Reply
#5

"error 075: input line too long" means that the ShowPlayerDialog line is too long. Use strcat to break it in smaller parts as shown above.
Reply
#6

Quote:
Originally Posted by MadeMan
View Post
"error 075: input line too long" means that the ShowPlayerDialog line is too long. Use strcat to break it in smaller parts as shown above.
Yea i know about that but look how short it is, it's slack.

EDIT:

Never mind it was just a Pawno bug, i removed the commented out sections and compiled as if nothing happened...
Thanks heaps for your support though, Greatly Appreciated

Cheers,
Deal
Reply
#7

Removed to new post
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)