How Can I delete this text label? - 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: How Can I delete this text label? (
/showthread.php?tid=441387)
How Can I delete this text label? -
jueix - 02.06.2013
Hi, So I'm making my own house system for my rp server and have a problem with 3d text labels, I can't seem to delete this one, Here's the code.
createpart
pawn Код:
new string[256];
format(string, sizeof(string), "House For Sale /n Price: %d/n TLS: %d", hInfo[houseid][Cost], Tls);
HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ);//not bought
HouseLabel[houseid] = Create3DTextLabel(string, 0x008080FF, iconX,iconY,iconZ, 10.0, 0, 1);
deletepart
pawn Код:
Delete3DTextLabel(HouseLabel[houseid]);
and it comes up with an error saying C:\Users\Jueix\Desktop\Sa-mp\gamemodes\newrp.pwn(3864) : error 035: argument type mismatch (argument 1)
Re: How Can I delete this text label? -
Chenko - 02.06.2013
Make sure wherever you have "new HouseLabel[MAX_HOUSES]" to do "new Text3D:HouseLabel[MAX_HOUSES];