Setting SetObjectMaterialText in-game - 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: Setting SetObjectMaterialText in-game (
/showthread.php?tid=497353)
Setting SetObjectMaterialText in-game -
PrivatioBoni - 26.02.2014
Hi guys,
I did have a little search around but didn't find anything about - maybe because it's so obvious.
Is there a way you can set the text in-game without having to change it on the script? I tried making a dynamic system but I get an error - I'm not sure if it's even possible.
Is it possible or not? If it is, I'll post what I've got here and hopefully someone can help me - but if it's not, there's no point.
Thanks in advance.
Re: Setting SetObjectMaterialText in-game -
Pottus - 26.02.2014
Of course it can be done dynamically either,
1.) Download a script to do it
2.) Build your own to do it
3.) Download and modify a script
Re: Setting SetObjectMaterialText in-game -
PrivatioBoni - 26.02.2014
Quote:
Originally Posted by [uL]Pottus
Of course it can be done dynamically either,
|
Ah, so it's possible. Cheers.
Quote:
Originally Posted by [uL]Pottus
1.) Download a script to do it
2.) Build your own to do it
3.) Download and modify a script
|
Yes. But:
Quote:
I did have a little search around but didn't find anything about
|
pawn Код:
CMD:bbtext(playerid,params[])
{
new text;
if(sscanf(params, "s[124]", text)) return SendClientMessage(playerid, COLOR_RED, "Syntax: /bbtext [text]");
new myobject = CreateObject(3077,404.0000000,2595.0000000,15.6000000,0.0000000,0.0000000,13.9970000);
SetObjectMaterialText(myobject, text, 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); // error line
return 1;
}
I have no idea how to do this, but this is the closest I think I can get on my own.
Error:
pawn Код:
(1276) : error 035: argument type mismatch (argument 2)