Pawno errors, help please? - 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: Pawno errors, help please? (
/showthread.php?tid=348979)
Pawno errors, help please? -
NeymarJr - 07.06.2012
Hey guys I was just making a teleport command and then I got this error:
Код:
C:\Users\NeymarJr\Desktop\SAMP Server\gamemodes\alpha.pwn(1025) : warning 202: number of arguments does not match definition
C:\Users\NeymarJr\Desktop\SAMP Server\gamemodes\alpha.pwn(1025) : warning 202: number of arguments does not match definition
Код:
if(!strcmp(cmdtext, "/nascar", true, 6))
{
SetPlayerPos(playerid, 1982.3100, -6631.4500, 23.7500, 360.0000, 0);
GameTextForPlayer(playerid, "~r~Welcome to the Nascar Arena!", 5000, 3);
return 1;
}
Line 1025 is the line where the SetPlayerPos is... someone help me please?
Re: Pawno errors, help please? -
MadeMan - 07.06.2012
pawn Код:
SetPlayerPos(playerid, 1982.3100, -6631.4500, 23.7500);
https://sampwiki.blast.hk/wiki/SetPlayerPos
Re: Pawno errors, help please? -
NeymarJr - 07.06.2012
Quote:
Originally Posted by MadeMan
|
Thanks so much! How did you fix that?
Re: Pawno errors, help please? -
MadeMan - 07.06.2012
Look at the wiki link. SetPlayerPos has only 4 parameters: playerid,x,y,z
But you used 6.
Re: Pawno errors, help please? -
legodude - 07.06.2012
wich are probably rotation's and since you have them at 360(=0) and 0, they don't make any sense.
Re: Pawno errors, help please? -
pasha97 - 07.06.2012
but if u want to change rotation use SetPlayerFacingAngle
Re: Pawno errors, help please? -
NeymarJr - 07.06.2012
Quote:
Originally Posted by MadeMan
Look at the wiki link. SetPlayerPos has only 4 parameters: playerid,x,y,z
But you used 6.
|
I tried to do what you did, like in the wiki but and then I fell into the sea.. lul
Re: Pawno errors, help please? -
MadeMan - 07.06.2012
Quote:
Originally Posted by NeymarJr
I tried to do what you did, like in the wiki but and then I fell into the sea.. lul
|
The coordinates are not right then.