26.09.2012, 20:51
You should create the object under OnGameModeInit, somewhere before you set the material text, but not up there with your defines. You were on the right track though Also note what I've changed in your SetObjectMaterialText line - there is a reason we defined the billboard object created (7910) as 'myobject.' That's so we could change the text of just that specific object, and not every other 7910 in the game, if that makes sense? It probably wouldn't work the way you had it anyway, which could have been the source of other errors you were getting.
pawn Код:
new myobject;//top of your script
pawn Код:
//ongamemodeinit
myobject = CreateObject(7910, -2988.1000976563, 467.60000610352, 17.60000038147, 0.0, 0.0, 90.0);
SetObjectMaterialText(myobject, "San Fierro Island", 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 36, 0, 0xFFFFFF00, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);