error 075: input line too long (after substitutions)
#1

Title says it all, plus some other errors:

Код:
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\gamemodes\drp.pwn(21407) : error 075: input line too long (after substitutions)
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\gamemodes\drp.pwn(21408) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\gamemodes\drp.pwn(21408) : error 017: undefined symbol "nBravura"
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\gamemodes\drp.pwn(21408) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\gamemodes\drp.pwn(21408) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\gamemodes\drp.pwn(21408) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Desktop\New Folder (2)\gamemodes\drp.pwn(21408) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
case 12: // Normal Vehicles
        {
line 21407 >>      ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Normal Vehicles", "Bravura ($25,000)\nSentinel ($50,000)\nManana ($22,000)\nEsperanto ($28,000)\nWashington ($35,000)\
            nPremier ($45,000)\nPrevion ($22,000)\nStallion ($42,000)\nAdmiral ($44,000)\nSolair ($55,000)\nGlendale ($40,000)\nOceanic ($45,000)\
            nHermes ($50,000)\nSabre ($45,000)\nBurrito ($52,000)\nVirgo$ (32,000)\nGreenwood ($45,000)\nElegant ($50,000)\nNebula ($28,000)\
            nMajestic ($50,000)\nBuccaneer ($38,000)\nFortune ($28,000)\nCadrona ($22,000)\nWillard ($32,000)\nFeltzer ($36,000)\nVincent ($45,000)\
            nClover ($36,000)\nIntruder ($30,000)\Primo ($36,000)\nTampa ($40,000)\nSunrise ($50,000)\nMerit ($45,000)\nWindsor ($48,000)\
            nStratum ($57,000)\nStafford ($80,000)\nEmperor ($40,000)\nPicador ($36,000)"
, "Choose", "Cancel");
        }
I am new to ShowPlayerDialog so I would appreciate if someone can help me re-write this.
Reply
#2

Just use strcat.
Reply
#3

Would strcat if I'm using DIALOG_STYLE_LIST ?
Reply
#4

Edit: Will this work?

pawn Код:
case 12: // Normal Vehicles
        {
            new sstring[256];
            strcat(sstring,"Bravura ($25,000)\nSentinel ($50,000)\nManana ($22,000)\nEsperanto ($28,000)\nWashington ($35,000)");
            strcat(sstring,"\nPremier ($45,000)\nPrevion ($22,000)\nStallion ($42,000)\nAdmiral ($44,000)\nSolair ($55,000)\nGlendale ($40,000)\nOceanic ($45,000)");
            strcat(sstring,"\nHermes ($50,000)\nSabre ($45,000)\nBurrito ($52,000)\nVirgo$ (32,000)\nGreenwood ($45,000)\nElegant ($50,000)\nNebula ($28,000");
            strcat(sstring,"\nMajestic ($50,000)\nBuccaneer ($38,000)\nFortune ($28,000)\nCadrona ($22,000)\nWillard ($32,000)\nFeltzer ($36,000)\nVincent ($45,000)");
            strcat(sstring,"\nClover ($36,000)\nIntruder ($30,000)\nPrimo ($36,000)\nTampa ($40,000)\nSunrise ($50,000)\nMerit ($45,000)\nWindsor ($48,000)");
            strcat(sstring,"\nStratum ($57,000)\nStafford ($80,000)\nEmperor ($40,000)\nPicador ($36,000)");
            ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Normal Vehicles", sstring, "Choose", "Cancel");
        }
Reply
#5

yes it will work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)