Stock or define function help needed.
#1

Hy all! I'm want to change CreateDynamic3DTextLabel to Dynamic3DText.
It's have -5 part. I'm tried it with stock, and with define, but it's didnt work... PLS help me!

Код:
#define Dynamic3DText(%0, %1, %2, %3, %4, %5, %6, %7) \
CreateDynamic3DTextLabel(%0, 0xFFFFFFFF, %1, %2, %3, %6, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, %7, %4, %5, -1, 100)
Reply
#2

Tell us the params you want in Dynamic3DText becouse we dont know if you messed up 7 4 5 at the and or not
Reply
#3

I'm want this:

Dynamic3DText(Text, x, y, z, i, w, drawdistance, testLOS);
Reply
#4

Quote:
Originally Posted by Epicless
Посмотреть сообщение
I'm want this:

Dynamic3DText(Text, x, y, z, i, w, drawdistance, testLOS);
I'm not sure if this is what you want, I'm not familiar making macro's so I made it using stock
pawn Код:
stock Dynamic3DText(text[], Float:X, Float:Y, Float:Z, Float:DrawDistance, TestLOS)
    return CreateDynamic3DTextLabel(text, 0xFFFFFFFF, X, Y, Z, DrawDistance, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, TestLOS, -1, -1, -1, 100);
Reply
#5

Thank you, but when I'm do this way:

anything = Dynamic3DText("Text", 0, 10, 5, 10, 1);


It's say:

.pwn(1542) : warning 213: tag mismatch

1542 is the: anything = Dynamic....
Reply
#6

try use float numbers instad of integers
Reply
#7

Make sure you put the Text3D tag in your variable, something like below:

pawn Код:
new Text3D: anything;

anything = Create3DText(..)
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)