3dTextLabel 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: 3dTextLabel doesn't appear (
/showthread.php?tid=635738)
3dTextLabel doesn't appear -
rolex - 12.06.2017
Guys, here is!
When i load houses, pickup has been appear, but 3dTextLabel doesn't show up.
here is
PHP Code:
CreateDynamicPickup(1273, 1, HINFO[i][hEx], HINFO[i][hEy], HINFO[i][hEz], 0);
format(str, sizeof(str), "Casa: %i\n Preзo: $%i", i, HINFO[i][hPreco]);
HINFO[i][hText] = CreateDynamic3DTextLabel(str, white, HINFO[i][hEx], HINFO[i][hEy], HINFO[i][hEz]+0.3, 15);
Why 3dTextLabel doesn't appear on pickup?
Re: 3dTextLabel doesn't appear -
Dokins - 12.06.2017
Can I see the define for HINFO[i][hText]?
Re: 3dTextLabel doesn't appear -
rolex - 12.06.2017
on hInfo:
PHP Code:
new HINFO[MAX_HOUSES][hInfo];
on string:
PHP Code:
format(str, sizeof(str), "Casa: %i\n Preзo: $%i", i, HINFO[i][hPreco]);
Re: 3dTextLabel doesn't appear -
Dokins - 12.06.2017
Thanks.
I'd advise checking with a 'test' text label. Then add the variables in to rule out any issues with the text itself.
Literally replace
'format(str, sizeof(str), "Casa: %i\n Preзo: $%i", i, HINFO[i][hPreco]);'
with format(str, sizeof(str), "TEST");
Re: 3dTextLabel doesn't appear -
rolex - 12.06.2017
Hmmm.. it's a good idea!
I'll do it! Thank you!