tp command.
#1

I am Trying To Make a teleport Command and i got this error:
Код:
C:\Documents and Settings\Administrateur\Bureau\tp.pwn(94) : error 035: argument type mismatch (argument 2)
Here is The Command:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/parea", cmdtext, true, 6) == 0)
	{
		SetPlayerPos(playerid, -1514.7089,788.5987,7.1875);
		SendClientMessage(playerid, "You Have Been Teleported To Players Base.");
		
		return 1;
	}
		return 0;
}
Reply
#2

Код HTML:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/parea", cmdtext, true, 6) == 0)
	{
		SetPlayerPos(playerid, -1514.7089,788.5987,7.1875);
		SendClientMessage(playerid, -1,"You Have Been Teleported To Players Base.");
		
		return 1;
	}
		return 0;
}
you can replace -1 with a another color.
Reply
#3

Always check wiki for "argument type mismatch" error and "number of arguments does not match definition" warning because the parameters are incorrect. Take a look at: https://sampwiki.blast.hk/wiki/SendClientMessage
Reply
#4

Thx Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)