tp command. - 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: tp command. (
/showthread.php?tid=622680)
tp command. -
aymane123 - 25.11.2016
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;
}
Re: tp command. -
BUHA - 25.11.2016
Код 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.
Re: tp command. -
Konstantinos - 25.11.2016
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
Re: tp command. -
aymane123 - 25.11.2016
Thx Fixed