How Can I delete this text label?
#1

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)
Reply
#2

Make sure wherever you have "new HouseLabel[MAX_HOUSES]" to do "new Text3D:HouseLabel[MAX_HOUSES];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)