Create- and DestroyObject.
#2

You're using the local function 'a'. Make it global. So:

pawn Код:
//In the range of includes:
new PlayerDrugWeed[MAX_PLAYERS] = (-1);

//In the command:
PlayerDrugWeed[playerid] = CreateObject(...);

//To destroy:
DestroyObject(PlayerDrugWeed[playerid]);
PlayerDrugWeed[playerid] = (-1);
And I don't know that fast what the best id for drug plant is. Try looking on samp wiki
Reply


Messages In This Thread
Create- and DestroyObject. - by Ihsan-Cingisiz - 28.01.2011, 18:07
Re: Create- and DestroyObject. - by Kwarde - 28.01.2011, 18:10
Re: Create- and DestroyObject. - by Backwardsman97 - 28.01.2011, 18:15
Re: Create- and DestroyObject. - by Ihsan-Cingisiz - 28.01.2011, 20:38
Re: Create- and DestroyObject. - by Ihsan-Cingisiz - 28.01.2011, 20:45
Re: Create- and DestroyObject. - by Kasis - 28.01.2011, 20:49
Re: Create- and DestroyObject. - by Kwarde - 29.01.2011, 07:45
Re: Create- and DestroyObject. - by Ihsan-Cingisiz - 29.01.2011, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)