PDA

View Full Version : 5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"


Deal-or-die
29/04/2012, 06:15 AM
(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

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\nHuntle y\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)

case 126:
{
if(!response)
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntle y\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\nHuntle y\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");
}
}

newbienoob
29/04/2012, 06:52 AM
Use strcat


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

Crazymax
29/04/2012, 07:24 AM
what about this?
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntle y\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");

Deal-or-die
29/04/2012, 07:57 AM
what about this?
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Catalogue", "Stretch\r\nCheetah\r\nAdmiral\r\nFeltzer\r\nHuntle y\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

Use strcat


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:

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 }

MadeMan
29/04/2012, 10:00 AM
"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.

Deal-or-die
29/04/2012, 01:15 PM
"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

Deal-or-die
01/05/2012, 12:08 PM
Removed to new post