5 Dialog errors - Input line too long, undefined symbol "t","is" and "only"
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)