A problem with my getobjectpos
#6

My problem is this little guy in your /pickup command.

pawn Code:
GetObjectPos(PlayerInfo[i][pWeedPlante], wX, wY, wZ);
Well you mis-spelled Plant which should have given you an error. Also, you put PlayerInfo[i] when later you use playerid. So it should be like this.

pawn Code:
GetObjectPos(PlayerInfo[playerid][pWeedPlant], wX, wY, wZ);
Also, under your pickup command you have this.

pawn Code:
if(PlayerToPoint(6, playerid, wX, wY, wZ))
{
  {
There is no need for two opening brackets. I think the compiler will ignore it, but it is unnecessary.
Reply


Messages In This Thread
A problem with my getobjectpos - by Johndaone - 25.02.2010, 23:24
Re: A problem with my getobjectpos - by Backwardsman97 - 26.02.2010, 00:16
Re: A problem with my getobjectpos - by Johndaone - 26.02.2010, 00:17
Re: A problem with my getobjectpos - by Backwardsman97 - 26.02.2010, 00:30
Re: A problem with my getobjectpos - by Johndaone - 26.02.2010, 00:35
Re: A problem with my getobjectpos - by Backwardsman97 - 26.02.2010, 00:46

Forum Jump:


Users browsing this thread: 2 Guest(s)