Setting SetObjectMaterialText in-game
#1

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.
Reply
#2

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
Reply
#3

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)