Streamer tag mismatch
#1

Hey, I'm getting warning saying, that I have tag mismatch in my code.

Code seems to work fine in game, but I don't know where is the problem, to solve the tag mismatch warning, here's code:
pawn Код:
//Array definition

enum E_DRUG_DROP
{
    E_DROP_OBJECT_ID,
    E_DROP_LABEL_ID,
    E_DROP_DRUG,
    E_DROP_AMOUNT,
    Float:E_DROP_X,
    Float:E_DROP_Y,
    Float:E_DROP_Z,
    Float:E_DROP_ROT,
    E_DROP_WORLD,
    E_DROP_INTERIOR,
    E_DROP_PLAYER[MAX_PLAYER_NAME],
    E_DROP_TIME,
    E_DROP_MANIPULATE
}

static
    gs_DrugDrop[MAX_DROPS][E_DRUG_DROP]
    ;

//Warning lines
gs_DrugDrop[drugindex][E_DROP_LABEL_ID] = CreateDynamic3DTextLabel(string, 0xFFFFFFFF, gs_DrugDrop[drugindex][E_DROP_X], gs_DrugDrop[drugindex][E_DROP_Y], gs_DrugDrop[drugindex][E_DROP_Z] + 0.4, 3.5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, gs_DrugDrop[drugindex][E_DROP_WORLD], gs_DrugDrop[drugindex][E_DROP_INTERIOR]);

if((IsValidDynamicObject(gs_DrugDrop[gs_DrugPVars[playerid][E_DROP_INDEX]][E_DROP_OBJECT_ID])) && (IsValidDynamic3DTextLabel(gs_DrugDrop[gs_DrugPVars[playerid][E_DROP_INDEX]][E_DROP_LABEL_ID])))

DestroyDynamic3DTextLabel(gs_DrugDrop[gs_DrugPVars[playerid][E_DROP_INDEX]][E_DROP_LABEL_ID]);
And I have saved the objectid of CreatedDynamicObject, into same variable [E_DROP_OBJECT_ID], and when I do same thing, like with 3DTextLabel I'm not getting any tag warnings for these.
Reply
#2

in the enum you need to specify its a 3d text label example:

Код:
enum E_DRUG_DROP
{
	E_DROP_OBJECT_ID,
	Text3D:E_DROP_LABEL_ID,
	E_DROP_DRUG,
	E_DROP_AMOUNT,
	Float:E_DROP_X,
	Float:E_DROP_Y,
	Float:E_DROP_Z,
	Float:E_DROP_ROT,
	E_DROP_WORLD,
	E_DROP_INTERIOR,
	E_DROP_PLAYER[MAX_PLAYER_NAME],
	E_DROP_TIME,
	E_DROP_MANIPULATE
}
Reply
#3

PHP код:
Text3D:E_DROP_LABEL_ID 
Reply
#4

Aw, thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)