SA-MP Forums Archive
Update3DTextLabel 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: Update3DTextLabel problem (/showthread.php?tid=289425)



Update3DTextLabel problem - antonio600x - 11.10.2011

Код:
C:\Documents and Settings\Administrator\Desktop\SAMP-server\gamemodes\gmbeta.pwn(777) : error 017: undefined symbol "Update3DTextLabel"
C:\Documents and Settings\Administrator\Desktop\SAMP-server\gamemodes\gmbeta.pwn(802) : error 017: undefined symbol "Update3DTextLabel"
777
Код:
Update3DTextLabel(HInfo[i][Label],0xFF0000FF,string);
802
Код:
Update3DTextLabel(HInfo[i][Label],0xFF0000FF,string);



Re: Update3DTextLabel problem - AndreT - 11.10.2011

The function is Update3DTextLabelText, not Update3DTextLabel!


Re: Update3DTextLabel problem - antonio600x - 11.10.2011

C:\Documents and Settings\Administrator\Desktop\SAMP-server\gamemodes\gmbeta.pwn(777) : error 017: undefined symbol "Label"
C:\Documents and Settings\Administrator\Desktop\SAMP-server\gamemodes\gmbeta.pwn(802) : error 017: undefined symbol "Label"


Re: Update3DTextLabel problem - AndreT - 11.10.2011

Does Label exist in your HInfo enum? Show how you construct the enum!


Re: Update3DTextLabel problem - antonio600x - 11.10.2011

enum HouseInfo//Naming the enum
{
Owner[24],//This will be where it will store the house owner name, in a 24 bit size array.
Owned,//To store if the house is owned or not.
Price,//How much the house will cost.
Float:XPos,//Float X position of the checkpoint
Float:YPos,//Self explanatory.
Float:ZPos,//Self explanatory.
VirtualWorld,//The checkpoints virtual world.
Text3D:HouseLabel//That label where it says "Owned Price..."
}
new HInfo[MAX_HOUSES][HouseInfo];//This is the var where we will read the house info.


Re: Update3DTextLabel problem - AndreT - 11.10.2011

You clearly named it "HouseLabel", not just "Label", so you actually have to use HInfo[i][HouseLabel]!