3D Text Label Issue
#1

pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <streamer>

#define SCM SendClientMessage
#define COLOR_LIGHTRED 0xFF6347AA

stock Text3D:CreateStreamed3DTextLabel(const string[], color, Float:posx, Float:posy, Float:posz, Float:draw_distance, virtualworld, testlos = 0)
{
    return CreateDynamic3DTextLabel(string, color, posx, posy, posz, draw_distance, INVALID_PLAYER_ID, INVALID_PLAYER_ID, testlos, virtualworld, -1, -1, 100.0);
}

CMD:label(playerid, params[])
{
    if(unformat(params,"s[128]",params)) return SCM(playerid, COLOR_LIGHTRED,"Usage: /test <text>");
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    CreateDynamic3DTextLabel(params, COLOR_LIGHTRED, X, Y, Z, 40.0, 0, 0);
    new Msg[128];
    format(Msg,sizeof(Msg),"3D Text Created!(Description: %s)",params);
    SendClientMessage(playerid, COLOR_LIGHTRED,Msg);
    return 1;
}
Whats wrong with this?

If I remove "dynamic" from the label it works perfectly... but dynamic labels aint working?!??!?!
Reply
#2

Update your streamer.
Reply
#3

Your format of CreateDynamic3DText is totally wrong, follow this

Код:
Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)