problem with DestroyPlayerObject
#4

You're using CreateObject then DestroyPlayerObject... They're not related.

Use DestroyObject.


However, your code is going to run into problems. If more than one person uses this command, (In it's current state) it will lock the players object and won't destroy the first created object.

It's because this code only puts out one variable. Where you should use an array, set to MAX_PLAYERS, and use the playerid to specify that the players object e.g. DestroyObject(kardus[playerid]);
Reply


Messages In This Thread
problem with DestroyPlayerObject - by ratxrat - 17.02.2016, 13:32
Re: problem with DestroyPlayerObject - by ratxrat - 17.02.2016, 14:08
Re: problem with DestroyPlayerObject - by ratxrat - 17.02.2016, 22:31
Re: problem with DestroyPlayerObject - by Sew_Sumi - 17.02.2016, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)