SA-MP Forums Archive
SetPlayerPos problem. - 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: SetPlayerPos problem. (/showthread.php?tid=426566)



SetPlayerPos problem. - AwesomeBi3cute - 29.03.2013

Код:
if(strcmp("/bj17",cmdtext,true, 6) == 0)
	{




	   SetPlayerPos(playerid,0,-2232.4333,-1738.0609,480.8380,220.3962,0,0,0,0,0,0);
	   SendClientMessage(playerid,COLOR_PINK, "Welcome to BaseJump 17");
       GivePlayerWeapon(playerid,46,1);
       GameTextForPlayer(playerid,"Welcome to BaseJump 17",3500,6);

	   return 1;
	}
Код:
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
C:\Users\KryptoniteX\Desktop\gtasa\pawno\BJ.pwn(487) : warning 202: number of arguments does not match definition
the 487 line is the "SetPlayerPos(playerid,0,-2232.4333,-1738.0609,480.8380,220.3962,0,0,0,0,0,0);" ill appreciate all the help *thanks by forward*


Re : SetPlayerPos problem. - petrux - 29.03.2013

Hi !
SetPlayerPos(playerid,0,-2232.4333,-1738.0609,480.8380,220.3962,0,0,0,0,0,0);
That's not how SetPlayerPos work
https://sampwiki.blast.hk/wiki/SetPlayerPos
(playerid,Float:x,Float:y,Float:z)

There is too much arguments.


Re: SetPlayerPos problem. - [..MonTaNa..] - 29.03.2013

Код:
Code:
if(strcmp("/bj17",cmdtext,true, 6) == 0)
	{




	   SetPlayerPos(playerid, -2232.4333,-1738.0609,480.8380);
	   SendClientMessage(playerid,COLOR_PINK, "Welcome to BaseJump 17");
       GivePlayerWeapon(playerid,46,1);
       GameTextForPlayer(playerid,"Welcome to BaseJump 17",3500,6);

	   return 1;
	}
Try this


Re: SetPlayerPos problem. - Sandiel - 29.03.2013

"number of arguments does not match definition"

-The arguments you've used in this function:
playerid,0,-2232.4333,-1738.0609,480.8380,220.3962,0,0,0,0,0,0
-Definition of the function:
playerid, Float:X, Float:Y, Float:Z
Hope this helps.
https://sampwiki.blast.hk/wiki/SetPlayerPos

pawn Код:
if(strcmp("/bj17",cmdtext,true, 6) == 0)
    {
       SetPlayerPos(playerid,-2232.4333,-1738.0609,480.8380);
       SendClientMessage(playerid,COLOR_PINK, "Welcome to BaseJump 17");
           GivePlayerWeapon(playerid,46,1);
           GameTextForPlayer(playerid,"Welcome to BaseJump 17",3500,6);
       return 1;
    }



Re: SetPlayerPos problem. - AwesomeBi3cute - 29.03.2013

Quote:
Originally Posted by MonTaNaAa
Посмотреть сообщение
Код:
Code:
if(strcmp("/bj17",cmdtext,true, 6) == 0)
	{




	   SetPlayerPos(playerid, -2232.4333,-1738.0609,480.8380);
	   SendClientMessage(playerid,COLOR_PINK, "Welcome to BaseJump 17");
       GivePlayerWeapon(playerid,46,1);
       GameTextForPlayer(playerid,"Welcome to BaseJump 17",3500,6);

	   return 1;
	}
Try this
ty a lot. youґre awesome! ))


Re: SetPlayerPos problem. - AwesomeBi3cute - 29.03.2013

Quote:
Originally Posted by Sandiel
Посмотреть сообщение
"number of arguments does not match definition"

-The arguments you've used in this function:
playerid,0,-2232.4333,-1738.0609,480.8380,220.3962,0,0,0,0,0,0
-Definition of the function:
playerid, Float:X, Float:Y, Float:Z
Hope this helps.
https://sampwiki.blast.hk/wiki/SetPlayerPos

pawn Код:
if(strcmp("/bj17",cmdtext,true, 6) == 0)
    {
       SetPlayerPos(playerid,-2232.4333,-1738.0609,480.8380);
       SendClientMessage(playerid,COLOR_PINK, "Welcome to BaseJump 17");
           GivePlayerWeapon(playerid,46,1);
           GameTextForPlayer(playerid,"Welcome to BaseJump 17",3500,6);
       return 1;
    }
thank you very much.