3DTextLabbels doesn't appear
#1

Код:
while(Doorss >= 1)
	{
    	dInfo[Doorss][dOne] = CreatePickup(dInfo[Doorss][dPickup], 1, dInfo[Doorss][dPos][0], dInfo[Doorss][dPos][1], dInfo[Doorss][dPos][2], 0);
		format(string, sizeof(string), "%s", dInfo[Doorss][dText]);
		dInfo[Doorss][dTwo] = Create3DTextLabel(string, COLOR_WHITE, dInfo[Doorss][dPos][0], dInfo[Doorss][dPos][1], dInfo[Doorss][dPos][2], 0, 0, 0);
    	Doorss--;
    }
It spawns the pickup, but the 3DextLabel just doesnt appear or i dont see any text, but in my database i have text and
dInfo[Doorss][dText] has text in it because i've already did:
Код:
cache_get_field_content(0,"Text",dInfo[i][dText],Connection,64);
Reply
#2

Maybe make print(string); to be absolutly sure, that there is a string inside

and replace COLOR_WHITE with this: 0xFFFFFFFF

PS: You're sure, you are in VirtualWorld 0?

Greekz
Reply
#3

I think the default VirtualWorld is 0 ?And yes it prints something in the string
Reply
#4

Okay, write it like this:

Код:
dInfo[Doorss][dTwo] = Create3DTextLabel(string, 0xFFFFFFFF, dInfo[Doorss][dPos][0], dInfo[Doorss][dPos][1], dInfo[Doorss][dPos][2], 30, 0);
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)