3DTextLabbels doesn't appear - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DTextLabbels doesn't appear (
/showthread.php?tid=576237)
3DTextLabbels doesn't appear -
SandKing94 - 02.06.2015
Код:
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);
AW: 3DTextLabbels doesn't appear -
Kaliber - 02.06.2015
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
Re: 3DTextLabbels doesn't appear -
SandKing94 - 02.06.2015
I think the default VirtualWorld is 0 ?And yes it prints something in the string
AW: 3DTextLabbels doesn't appear -
Kaliber - 02.06.2015
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);