PDA

View Full Version : Pawno errors, help please?


NeymarJr
07/06/2012, 12:38 PM
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?

MadeMan
07/06/2012, 12:41 PM
SetPlayerPos(playerid, 1982.3100, -6631.4500, 23.7500);


http://wiki.sa-mp.com/wiki/SetPlayerPos

NeymarJr
07/06/2012, 12:49 PM
SetPlayerPos(playerid, 1982.3100, -6631.4500, 23.7500);


http://wiki.sa-mp.com/wiki/SetPlayerPos


Thanks so much! How did you fix that?

MadeMan
07/06/2012, 12:51 PM
Look at the wiki link. SetPlayerPos has only 4 parameters: playerid,x,y,z

But you used 6.

legodude
07/06/2012, 12:55 PM
wich are probably rotation's and since you have them at 360(=0) and 0, they don't make any sense.

pasha97
07/06/2012, 01:03 PM
but if u want to change rotation use SetPlayerFacingAngle

NeymarJr
07/06/2012, 01:07 PM
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

MadeMan
07/06/2012, 01:14 PM
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.