SA-MP Forums Archive
Problem whit 3d text - 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: Problem whit 3d text (/showthread.php?tid=622317)



Problem whit 3d text - DyduShxD - 20.11.2016

Hello, can anyone tell me how to use more lines for this update? (Text is very higher .. and i want to put her in 2-3 lines) thanx

Код:
new string[256];
	format(string, sizeof(string), "{FFFF00}Getgift{FFFFFF}\nScrie {FFFF00}[/getgift]{FFFFFF}\nRobP Castigate: {FFFF00}%d{FFFFFF}\nBani Castigati: {FFFF00}%d${FFFFFF}RespectP Castigate: {FFFF00}%d{FFFFFF}\nFolosita de: {FFFF00}%d{FFFFFF} ori", GiftRob,GiftMoney,GiftRP,GiftFolosit);
	Update3DTextLabelText(getgift, 0xFFFFFFFF, string);



Re: Problem whit 3d text - sampkinq - 20.11.2016

Код:
new string[500], totalstr[900];

format(string, sizeof(string),"bla bla 1\n");
strcat(totalstr, string);

format(string, sizeof(string),"bla bla 2\n");
strcat(totalstr, string);

Update3DTextLabelText(getgift, 0xFFFFFFFF, totalstr);
Un-Tested.


Re: Problem whit 3d text - DyduShxD - 20.11.2016

Thanx, now is working