SA-MP Forums Archive
Dialog to long but i wan them. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog to long but i wan them. (/showthread.php?tid=486465)



Dialog to long but i wan them. - Yves - 08.01.2014

Hello i created a dialog here and its for the dealership system etc, anyways dialog seems to be to long is there anyways to fix this issue without removing stuff

error 075: input line too long (after substitutions)
Код:
	case 12: // Normal Vehicles
		{
		    ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Normal Vehicles", "Comet ($45,000)\nFeltzer ($88,000)\nStallion ($120,000)\nWindsor ($190,000)\nSentinel ($17,000)\nManana ($15,000)\nElegy ($110,000)\nBravura ($10,000)\nPerenniel ($30,000)\nVoodoo ($25,000)\nMoonbeam ($30,00)\nEsperanto ($60,000)\nWashington ($50,000)\nIceCream Van ($80,000)\nBobcat ($55,000)\nPremier ($65,000)\nRumpo ($90,000)\nRomero ($100,000)\nAdmiral ($45,000)\nCaddy ($10,000)\nSolair ($80,000)\nTopfun van ($46,000)\nGlendale ($110,000)\nOceanic ($100,000)\nHermes ($110,000)\nWalton ($20,000)\nRegina ($40,000)\nBurrito ($20,000)\nCamper van ($75,000)\nRancher ($97,000)\nVirgo ($88,000)\nGreenwood ($80,000)\nBloodring Banger ($66,000)\nElegant ($80,000)\nCampervan1 ($120,000)\nNebula ($75,000)\nMajestic ($57,000)\nBuccaneer ($35,000)\nFortune ($29,000)\nCadrona ($77,000)\nWillard ($52,000)\nRemington ($15,000)\nVincent ($50,000)\nClover ($20,000)\nSadler ($30,000)\nHustler ($350,000)\nIntruder ($60,000)\nPrimo ($44,000)", "Choose", "Cancel");
 		}



Re: Dialog to long but i wan them. - Patrick - 08.01.2014

strcat should fix the problem. search search next time

pawn Код:
case 12:
{
    new
        string[ 512 ]
    ;
    strcat(string, "Comet ($45,000)\nFeltzer ($88,000)\nStallion ($120,000)\nWindsor ($190,000)\nSentinel ($17,000)\n"
    strcat(string, "Manana ($15,000)\nElegy ($110,000)\nBravura ($10,000)\nPerenniel ($30,000)\nVoodoo ($25,000)\n"
    strcat(string, "Moonbeam ($30,00)\nEsperanto ($60,000)\nWashington ($50,000)\nIceCream Van ($80,000)\nBobcat ($55,000)\n"
    strcat(string, "Premier ($65,000)\nRumpo ($90,000)\nRomero ($100,000)\nAdmiral ($45,000)\nCaddy ($10,000)\nSolair ($80,000)\n"
    strcat(string, "Topfun van ($46,000)\nGlendale ($110,000)\nOceanic ($100,000)\nHermes ($110,000)\nWalton ($20,000)\n"
    strcat(string, "Regina ($40,000)\nBurrito ($20,000)\nCamper van ($75,000)\nRancher ($97,000)\nVirgo ($88,000)\n"
    strcat(string, "Greenwood ($80,000)\nBloodring Banger ($66,000)\nElegant ($80,000)\nCampervan1 ($120,000)\nNebula ($75,000)\n"
    strcat(string, "Majestic ($57,000)\nBuccaneer ($35,000)\nFortune ($29,000)\nCadrona ($77,000)\nWillard ($52,000)\n"
    strcat(string, "Remington ($15,000)\nVincent ($50,000)\nClover ($20,000)\nSadler ($30,000)\nHustler ($350,000)\nIntruder ($60,000)\nPrimo ($44,000)");
    ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Normal Vehicles", string, "Choose", "Cancel");
}



Re: Dialog to long but i wan them. - Yves - 08.01.2014

ahh nice idea pds2k12 why didn't i think of that thanks man

also didn't need the string already got one