enum help.
#5

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Код:
enum RopeInfo {
	Float: RRX,
	Float: RRY,
	Float: RRZ,
};

new RopeInformation[MAX_PLAYERS][RopeInfo];

YCMD:climbrope(playerid, params[], help) {
	SetTimerEx("destroyrope",9000, false,"ddddd",
		CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+5, 0, 0, Angle),
		CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+3, 0, 0, Angle),
		CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+2, 0, 0, Angle),
		CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]+1, 0, 0, Angle),
		CreateDynamicObject(19089, RopeInformation[playerid][RRX], RopeInformation[playerid][RRY], RopeInformation[playerid][RRZ]-5, 0, 0, Angle)
	);
}

forward destroyrope(obj1,obj2,obj3,obj4,obj5);
public destroyrope(obj1,obj2,obj3,obj4,obj5) {
	DestroyDynamicObject(obj1);
	DestroyDynamicObject(obj2);
	DestroyDynamicObject(obj3);
	DestroyDynamicObject(obj4);
	DestroyDynamicObject(obj5);
}

This wont work,
If 2 people use this command at the same time
It will only destroy the 2nd persons objects...
hence why I need to save it in the enum
Reply


Messages In This Thread
enum help. - by Prokill911 - 12.06.2015, 04:16
Re: enum help. - by Pottus - 12.06.2015, 04:31
Re: enum help. - by Prokill911 - 12.06.2015, 04:33
Re: enum help. - by Pottus - 12.06.2015, 04:49
Re: enum help. - by Prokill911 - 12.06.2015, 04:55
Re: enum help. - by Pottus - 12.06.2015, 05:18
Re: enum help. - by Prokill911 - 12.06.2015, 05:27
Re: enum help. - by Prokill911 - 12.06.2015, 16:13
Re: enum help. - by Pottus - 12.06.2015, 16:14
Re: enum help. - by Prokill911 - 12.06.2015, 16:24

Forum Jump:


Users browsing this thread: 7 Guest(s)