07.05.2013, 15:19
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;
}
If I remove "dynamic" from the label it works perfectly... but dynamic labels aint working?!??!?!