SA-MP Forums Archive
input line too long (after substitutions) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: input line too long (after substitutions) (/showthread.php?tid=167294)



input line too long (after substitutions) - Kar - 11.08.2010

pawn Код:
TextDrawShowForPlayer(playerid,BizItemsText);
            format(string,sizeof(string),"~g~Items~n~~n~~b~Weapons~n~~w~Product 1 - 9mm~n~Product 2 - Desert Eagle~n~Product 2 - Desert Eagle~n~Product 3 - Sawnoff Shotgun~n~Product 4 - Combat Shotgun~n~Product 5 - Tec9~n~Product 6 - AK47~n~Product 7 - MP5~n~Product 8 - M4~n~Product 9 - Sniper~n~Product 10 - Ice Cream~n~Product 11 - Hamburger~n~Product 12 - French Toast~n~Product 13 - Chicken Salad~n~Product 14 - Chicken & Chips~n~Product 15 - Full Stack Pizza~n~Product 16 - Chain Saw~n~Product 17 - Parachute");
            TextDrawSetString(BizItemsText,string);
-.- any dieas without creating another textdraw


Re: input line too long (after substitutions) - Jefff - 11.08.2010

pawn Код:
format(string,sizeof(string),"%s","~g~Items~n~~n~~b~Weapons~n~~w~Product 1 - 9mm~n~Product 2 - Desert Eagle~n~Product 2 - Desert Eagle~n~Product 3 - Sawnoff Shotgun~n~Product 4 - Combat Shotgun~n~Product 5 - Tec9~n~Product 6 - AK47~n~Product 7 - MP5~n~Product 8 - M4~n~Product");
format(string,sizeof(string),"%s 9 - Sniper~n~Product 10 - Ice Cream~n~Product 11 - Hamburger~n~Product 12 - French Toast~n~Product 13 - Chicken Salad~n~Product 14 - Chicken & Chips~n~Product 15 - Full Stack Pizza~n~Product 16 - Chain Saw~n~Product 17 - Parachute",string);



Re: input line too long (after substitutions) - Kar - 11.08.2010

wow you could do that? i luv u -.0

may i ask what this does

"%s" in the first one


Re: input line too long (after substitutions) - Carlton - 11.08.2010

pawn Код:
TextDrawShowForPlayer(playerid,BizItemsText);
            format(string,sizeof(string),"~g~Items~n~~n~~b~Weapons~n~~w~Product 1 - 9mm~n~Product 2 - Desert Eagle~n~Product 2 - Desert Eagle~n~Product 3 - Sawnoff Shotgun~n~Product 4 - Combat Shotgun~n~Product 5\
 - Tec9~n~Product 6 - AK47~n~Product 7 - MP5~n~Product 8 - M4~n~Product 9 - Sniper~n~Product 10 - Ice Cream~n~Product 11 - Hamburger~n~Product 12\
 - French Toast~n~Product 13 - Chicken Salad~n~Product 14 - Chicken & Chips~n~Product 15 - Full Stack Pizza~n~Product 16 - Chain Saw~n~Product 17 - Parachute"
);
            TextDrawSetString(BizItemsText,string);