SetObjectMaterialText
#1

When I try to make the object via a command. It wont show up. It wont even show up if I have it in OnGameModeInit
I'm not talking about the just the text either, The object wont show up.

I have no idea what is wrong. I tried it on another script from the SAMP Server package, And they show up fine. Any ideas?

pawn Код:
CMD:text(playerid, params[])
{
    new myobject = CreateObject(11453, 10, 10, 10, 0.0, 0.0, 90.0);
    SetObjectMaterialText(myobject, "SA-MP", 0, 90, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, 1);
    SendClientMessageEx(playerid, COLOR_GRAD1, "Object Made...");
    return 1;
}
Reply
#2

try this:
pawn Код:
CMD:text(playerid, params[])
{
    new myobject[MAX_PLAYERS];
    myobject[playerid] = CreateObject(11453, 10, 10, 10, 0.0, 0.0, 90.0);
    SetObjectMaterialText(myobject[playerid], "SA-MP", 0, 90, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, 1);
    SendClientMessageEx(playerid, COLOR_GRAD1, "Object Made...");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)