14.11.2018, 20:03
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:-
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]);