21.04.2012, 19:47
i also have a problem with the colors... i think its a bug -.- when i type in 0x000000FF then it just gets invisible and when I type in 0xCC0000FF for an example it gets blue?! wtf? hope for fix.. or someone can tell me what i do wrong?
Код:
CMD:settext(playerid,params[]) { new textstring[24]; new textsize; new fontcol; new backcolor; if(sscanf(params,"sdhh",textstring,textsize,fontcol,backcolor)) return SendClientMessage(playerid,0xFF0000,"Format: /settext [Text] [Fontsize] [Fontcol->HEX] [BackCol->HEX]"); SetObjectMaterialText(testobject,textstring,0,OBJECT_MATERIAL_SIZE_256x128,"Arial",textsize,1,fontcol,backcolor,0); return 1; }