Create Dynamic 3D Text Label problem - 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: Create Dynamic 3D Text Label problem (
/showthread.php?tid=659622)
Create Dynamic 3D Text Label problem -
princemoga - 09.10.2018
Hey!
I've got another problem, basically, 3DText Label is not appearing after I use function LoadBusiness() OnGameModeInIt..
Dynamic Pickup loads normally, but 3DText does not appear.
https://pastebin.com/aKgiSZpM
_________________________________________________
Prince Moga
best water purifier
Re: Create Dynamic 3D Text Label problem -
Dennis12 - 09.10.2018
"Name" and "Owner" from the database do not load well.
cache_get_value_name has the following parameters:
Код:
cache_get_value_name (line_idx, const column_name [], destination [], max_len = sizeof (destination));
You have to put the maximum on the name and owner string. Depends how you declared it in the enum, it must be bName [32] (as an example).
New Code:
Код:
cache_get_value_name(i, "Name", bInfo[i][bName], 32);
cache_get_value_name(i, "Owner", bInfo[i][bOwner], 32);
Enum Example:
Код:
enum bizzInfo {
bName[32],
bOwner[32]
};