Weird character in 3dtextlabel
#1

So can anyone explain to me why this is happening and why this is here:


This is the code:
pawn Код:
format(string2, sizeof(string2), "%s owned by:\n%s", VehicleNames2[cModel-400], AVehicleData[vid][Owner]);
        AVehicleData[vid][TextLabel] = CreateDynamic3DTextLabel(string2, 0xFFFFFFFFFF, AVehicleData[vid][SpawnX], AVehicleData[vid][SpawnY], AVehicleData[vid][SpawnZ] + 0.3, 40.0, INVALID_PLAYER_ID, vid);
Reply
#2

You sure
pawn Код:
AVehicleData[vid][Owner]
is being properly formatted? Have you debug your code?

pawn Код:
print(AVehicleData[vid][Owner]);
Reply
#3

Like the person above me said:
It has to be something like
pawn Код:
Owner[32] <--- String
and not a normal
pawn Код:
Owner  <--- Integer
in the AVehicleData.
Reply
#4

Okay thats fixed thank you but now another problem.
Код:
        AVehicleData[vid][TextLabel] = CreateDynamic3DTextLabel(string2, 0xFFFFFFFFFF, AVehicleData[vid][SpawnX], AVehicleData[vid][SpawnY], AVehicleData[vid][SpawnZ], 40.0, INVALID_PLAYER_ID, vid);
This makes the textdraw float above the car like 50 meters or so why does it do that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)