26.02.2010, 00:46
My problem is this little guy in your /pickup command.
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.
Also, under your pickup command you have this.
There is no need for two opening brackets. I think the compiler will ignore it, but it is unnecessary.
pawn Code:
GetObjectPos(PlayerInfo[i][pWeedPlante], wX, wY, wZ);
pawn Code:
GetObjectPos(PlayerInfo[playerid][pWeedPlant], wX, wY, wZ);
pawn Code:
if(PlayerToPoint(6, playerid, wX, wY, wZ))
{
{