Pawno errors, help please?
#1

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?
Reply
#2

pawn Код:
SetPlayerPos(playerid, 1982.3100, -6631.4500, 23.7500);
https://sampwiki.blast.hk/wiki/SetPlayerPos
Reply
#3

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
pawn Код:
SetPlayerPos(playerid, 1982.3100, -6631.4500, 23.7500);
https://sampwiki.blast.hk/wiki/SetPlayerPos
Thanks so much! How did you fix that?
Reply
#4

Look at the wiki link. SetPlayerPos has only 4 parameters: playerid,x,y,z

But you used 6.
Reply
#5

wich are probably rotation's and since you have them at 360(=0) and 0, they don't make any sense.
Reply
#6

but if u want to change rotation use SetPlayerFacingAngle
Reply
#7

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
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)