SetPlayerPos problem.
#1

Код:
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*
Reply
#2

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

Код:
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
Reply
#4

"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;
    }
Reply
#5

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! ))
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)