Little 3D Text Label Error.
#1

Hey Guys, Please help me with this one. Thanks
Код:
			if(strcmp(cmd, "/label", true) == 0)
 	{
	if(faction[playerid] == 1)
	{
		new Float:X;
		new Float:Y;
		new Float:Z;
		new tmp[128];
		tmp = strtok(cmdtext, idx);
		if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /label [What you Want the Label to Say.]!");
		GetPlayerPos(playerid, X, Y, Z);
		Create3DTextLabel(strlen(tmp),0x008080FF,X,Y,Z,40.0,0);
		return 1;
	}
	}
Error:
Код:
error 035: argument type mismatch (argument 1)
Thanks in Advance
Reply
#2

https://sampwiki.blast.hk/wiki/Create3DTextLabel
Reply
#3

The expected first parameter of Create3DTextLabel is supposed to be a string, not an integer!

For example:

pawn Код:
Create3DTextLabel(tmp,0x008080FF,X,Y,Z,40.0,0);
Reply
#4

Thanks for the Quick Response guys. :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)