SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 29/04/2012, 07:15 AM   #1
Deal-or-die
Huge Clucker
 
Deal-or-die's Avatar
 
Join Date: Oct 2010
Location: An Island 1000's of miles away
Posts: 369
Reputation: 22
Thumbs up 5 Dialog errors - Input line too long, undefined symbol "t","is" and "only" [Problem Solved]

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");
            }
        }
__________________
/////////////////////////// | Mini Moot | \\\\\\\\\\\\\\\\\\\\\\\\\\\

"I'm in the country that basically invented the Internet, and your getting faster speeds on an island 1,000miles away"

Last edited by Deal-or-die; 29/04/2012 at 02:37 PM.
Deal-or-die is offline   Reply With Quote
Old 29/04/2012, 07:52 AM   #2
newbienoob
High-roller
 
newbienoob's Avatar
 
Join Date: Jan 2012
Location: Follow the moaning coming from your parents' bedroom
Posts: 1,562
Reputation: 265
Default Re: 5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"

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");
newbienoob is offline   Reply With Quote
Old 29/04/2012, 08:24 AM   #3
Crazymax
Big Clucker
 
Join Date: Apr 2012
Posts: 83
Reputation: 12
Default Re: 5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"

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");
Crazymax is offline   Reply With Quote
Old 29/04/2012, 08:57 AM   #4
Deal-or-die
Huge Clucker
 
Deal-or-die's Avatar
 
Join Date: Oct 2010
Location: An Island 1000's of miles away
Posts: 369
Reputation: 22
Default Re: 5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"

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                }
__________________
/////////////////////////// | Mini Moot | \\\\\\\\\\\\\\\\\\\\\\\\\\\

"I'm in the country that basically invented the Internet, and your getting faster speeds on an island 1,000miles away"
Deal-or-die is offline   Reply With Quote
Old 29/04/2012, 11:00 AM   #5
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,489
Reputation: 256
Default Re: 5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"

"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.
MadeMan is offline   Reply With Quote
Old 29/04/2012, 02:15 PM   #6
Deal-or-die
Huge Clucker
 
Deal-or-die's Avatar
 
Join Date: Oct 2010
Location: An Island 1000's of miles away
Posts: 369
Reputation: 22
Default Re: 5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"

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
__________________
/////////////////////////// | Mini Moot | \\\\\\\\\\\\\\\\\\\\\\\\\\\

"I'm in the country that basically invented the Internet, and your getting faster speeds on an island 1,000miles away"
Deal-or-die is offline   Reply With Quote
Old 01/05/2012, 01:08 PM   #7
Deal-or-die
Huge Clucker
 
Deal-or-die's Avatar
 
Join Date: Oct 2010
Location: An Island 1000's of miles away
Posts: 369
Reputation: 22
Default

Removed to new post
__________________
/////////////////////////// | Mini Moot | \\\\\\\\\\\\\\\\\\\\\\\\\\\

"I'm in the country that basically invented the Internet, and your getting faster speeds on an island 1,000miles away"

Last edited by Deal-or-die; 01/05/2012 at 01:40 PM.
Deal-or-die is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED]warning 224: indeterminate array size in "sizeof" expression (symbol "") LarzI Help Archive 2 22/12/2009 05:32 AM
Admin script requires "ReturnUser", "strtok" and "IsNumeric" Rubennnnn Help Archive 1 02/12/2009 07:08 PM
"Bots", "AI", "NPCs"... Computer-controlled pedestrians and traffic! ssflsnoob General 2 23/11/2008 07:06 PM


All times are GMT. The time now is 07:37 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.