SA-MP Forums Archive
Tag mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag mismatch (/showthread.php?tid=556319)



Tag mismatch - rOps - 10.01.2015

Код HTML:
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;
}
Код HTML:
CreatePickupWith3DText(19130, 1, 1958.3783, 1343.1572, 15.3746, "Test", 15, 0);
Quote:

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




Re: Tag mismatch - 1fret - 10.01.2015

CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])

Check your format


Re: Tag mismatch - rOps - 10.01.2015

Thanks, i forgot to write Float.


Re: Tag mismatch - FunnyBear - 10.01.2015

Quote:
Originally Posted by rOps
Посмотреть сообщение
Код HTML:
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;
}
Код HTML:
CreatePickupWith3DText(19130, 1, 1958.3783, 1343.1572, 15.3746, "Test", 15, 0);

Try this,

pawn Код:
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,

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