Delete3DTextLabel Problem !
#2

you cant do it like that.
Put MyLabel inside dGunData, then create label for each object you drop, then delete it once they get picked up like this:-

pawn Код:
enum whatever
{
    Text3D: MyLabel
}
new dGunData[MAX_OBJECTS][whatever];

//now when player drops gun
dGunData[f][MyLabel] = Create3DTextLabel(""COL_GREEN"WEAPON GEAR\n"COL_GREY"Type /pickupgun", 0x008080FF, dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]-0.5, 5.0, 0, 0); // TEXTO 3D

//now when player picksup gun, we have to destroy it
Delete3DTextLabel(dGunData[f][MyLabel]);
Reply


Messages In This Thread
Delete3DTextLabel Problem ! - by AndynhoRc - 14.11.2018, 17:07
Re: Delete3DTextLabel Problem ! - by ReD_HunTeR - 14.11.2018, 20:03

Forum Jump:


Users browsing this thread: 2 Guest(s)