SA-MP Forums Archive
Elevator 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Elevator Problem (/showthread.php?tid=141425)



Elevator Problem - ColdXX - 13.04.2010

errm i have a problem with this command....
when i type /go IG nothing happenes!
Can someone tell me which the problem is?:S

pawn Код:
if(strcmp(cmdtext,"/go",true)==0)
    {
    MoveObject(lift,2446.0090332031, -1658.8232421875, 23.034029006958,10);
    return 1;
    }
    return SendClientMessage(playerid,COLOR_RED,"Unknown Command!Type /cmds for commands list");
    }



Re: Elevator Problem - Jay420 - 13.04.2010

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext,"/go",true)==0)
  {
    MoveObject(lift,2446.0090332031, -1658.8232421875, 23.034029006958,10);
    return 1;
  }
  //other commands
  return 0;
}
And check the "lift"s coordinates. If you accidentally just copied the starting positions coordinates, it wont move.