Help me D: - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me D: (
/showthread.php?tid=68631)
Help me D: -
T1CKLE - 12.03.2009
Im trying to get a command to work in a area but its showing these Warnings
warning 213: tag mismatch
warning 202: number of arguments does not match definition
this is what the code looks like
Код:
dcmd_stunt(playerid, params[])
{
if(PlayerToPoint(1995.5, 1518.0, 2006.0, 1569.0))
#pragma unused params
{
SetPlayerPos(playerid, stuntSpawn[random1337][0], stuntSpawn[random1337][1], stuntSpawn[random1337][2]);
}
else
{
return SendClientMessage(playerid, RED, Message(playerid, "NOT_AUTHORIZED"));
}
return true;
}
This code shows the warning, if(PlayerToPoint(1995.5, 1518.0, 2006.0, 1569.0))
Re: Help me D: -
Flag - 12.03.2009
if you mean that function:
PlayerToPoint(Float:radi, playerid, Float

, Float:y, Float:z)
... you have to write:
if(PlayerToPoint(8.0,playerid,1995.5, 1518.0, 2006.0, 1569.0))