Please help me with this error for scripting?
#6

you wrote GetPlayerPos instead of SetPlayerPos

Change it

Wrong
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
 {
 if (strcmp("/mytp", cmdtext, true, 10) == 10)
 {
 GetPlayerPos(playerid,2372.0339,1402.0870,10.6719) ;
 SendClientMessage(playerid, COLOR_YELLOW , "You have Teleported");
 }
 return 0;

Correct

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
 {
 if (strcmp("/mytp", cmdtext, true, 10) == 10)
 {
 SetPlayerPos(playerid,2372.0339,1402.0870,10.6719) ;
 SendClientMessage(playerid, COLOR_YELLOW , "You have Teleported");
 }
 return 0;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)