SetObjectMaterialText + %d ?
#1

HeyAll !
i Want to Do a Signboard With Score, Like : Red %d, Blue %d
amm... i dont know how to do it ... Look, My " new " its , ASc + BSc..

here is a code for example..
PHP код:
if (strcmp("/text"cmdtexttrue) == 0){new myobject CreateObject(1935300100.00.090.0); //create the objectSetObjectMaterialText(myobject, "Red %d {FFFFFF}", 0, OBJECT_MATERIAL_SIZE_256x128,\"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER, ASc);// write "SA-MP 0.3e RC7" on the object, with orange font color and black backgroundreturn 1; } 
Example ..
You See guys?
Its Do Number OF Argument..
what to do..?
Reply
#2

How does one format variables into a string, hmmm ...
Reply
#3

what u mean...? how can i fix the code?
Reply
#4

For scripting related problems and questions please use Scripting Help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)