#1

help please,

how can i put this in my script:

if(!strcmp(cmdtext,"/tele",true)) {
SetPlayerPos(playerid, 1459,443, -1073,91, 15);
SetPlayerAngle(playerid, 0);
return 1;
}

i get 3 errors then and here they are:
C:\Documents and Settings\SAMP pc\Desktop\server\pawno\new.pwn(140) : warning 202: number of arguments does not match definition
C:\Documents and Settings\SAMP pc\Desktop\server\pawno\new.pwn(140) : warning 202: number of arguments does not match definition
C:\Documents and Settings\SAMP pc\Desktop\server\pawno\new.pwn(141) : error 017: undefined symbol "SetPlayerAngle"
C:\Documents and Settings\SAMP pc\Desktop\server\pawno\new.pwn(145) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

the Setplayer angle is wrong, how to fix?
Reply
#2

pawn Код:
if(!strcmp(cmdtext,"/tele",true))
{
  SetPlayerPos(playerid, 1459, 443, -1073);//Only has 4 arguments (although that's probably the wrong coords)
  SetPlayerFacingAngle(playerid, 0);//Actually SetPlayerFacingAngle
  return 1;
}
Reply
#3

pawn Код:
1459,443
You're doing wrong.

pawn Код:
1459.443
This is right.
Reply
#4

and put what backwardsman97 said under OnPlayerCommandText, thus it should look like this:

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
  if(!strcmp(cmdtext,"/tele",true))
  {
    SetPlayerPos(playerid, 1459, 443, -1073);//Only has 4 arguments
    SetPlayerFacingAngle(playerid, 0);//Actually SetPlayerFacingAngle
    return 1;
  }
  return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)