PDA

View Full Version : Tag mismatch


rOps
10/01/2015, 12:33 PM
stock CreatePickupWith3DText(PickupID, PickupType, Pos_X, Pos_Z, Pos_Y, Text[], DrawDistance, VirtualWorld)
{
CreatePickup(PickupID, PickupType, Pos_X, Pos_Z, Pos_Y, -1);

Create3DTextLabel(Text, -1, Pos_X, Pos_Z, Pos_Y, DrawDistance, VirtualWorld, 0);

return 1;
}

CreatePickupWith3DText(19130, 1, 1958.3783, 1343.1572, 15.3746, "Test", 15, 0);

C:\Users\PC\Desktop\TEST\gamemodes\test.pwn(78) : warning 213: tag mismatch
C:\Users\PC\Desktop\TEST\gamemodes\test.pwn(78) : warning 213: tag mismatch
C:\Users\PC\Desktop\TEST\gamemodes\test.pwn(78) : warning 213: tag mismatch

1fret
10/01/2015, 12:37 PM
CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])

Check your format

rOps
10/01/2015, 12:39 PM
Thanks, i forgot to write Float. :D

FunnyBear
10/01/2015, 12:42 PM
stock CreatePickupWith3DText(PickupID, PickupType, Pos_X, Pos_Z, Pos_Y, Text[], DrawDistance, VirtualWorld)
{
CreatePickup(PickupID, PickupType, Pos_X, Pos_Z, Pos_Y, -1);

Create3DTextLabel(Text, -1, Pos_X, Pos_Z, Pos_Y, DrawDistance, VirtualWorld, 0);

return 1;
}

CreatePickupWith3DText(19130, 1, 1958.3783, 1343.1572, 15.3746, "Test", 15, 0);



Try this,

stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])
{
Create3DTextLabel(text, 0xFFFFFFFF, X, Y, Z+0.75, 40.0, Virtualworld, 0);
CreatePickup(model, type, X, Y, Z, Virtualworld);
return 1;
}


And the usage for the function,

CreatePickupWith3DText(1318, 1, 1825.503051, -1538.151855, 13.546875, 0, "Input text here"); // Change to fit your needs