very simple help!
#4

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
You don't do that...

You're using the actual ModelID of the object, you should be tracking the created object via a variable

Код:
Object[playerid] = SetPlayerAttachedObject( playerid, 2, 18634, 7,0.000000, 0.100000, 0.350000, -35.224993, 45.215000, 1.500000, 5.000000,1.500000, 1.500000);
Код:
DestroyObject(Object[playerid]);

This is probably entirely wrong, but the main thing is that you need to track the actual object, so you can destroy it, as the model ID isn't what it goes off.

It's similar to cars... If you spawn cars, you can put
Код:
AdminCar = CreateVehicle(bla,de,bla);
then you can use AdminCar in if statements and other areas.

Each one that is created will make the object ID for the next increment, hence why you need to track it.
I understand, Thank u very much!
Reply


Messages In This Thread
very simple help! - by Learn - 08.01.2017, 06:35
Re: very simple help! - by Learn - 08.01.2017, 06:38
Re: very simple help! - by Sew_Sumi - 08.01.2017, 06:57
Re: very simple help! - by Learn - 08.01.2017, 07:04
Re: very simple help! - by Learn - 08.01.2017, 07:19
Re: very simple help! - by silverms - 08.01.2017, 07:23
Re: very simple help! - by Learn - 08.01.2017, 07:32
Re: very simple help! - by Sew_Sumi - 08.01.2017, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)