Function to read from enum
#8

Quote:
Originally Posted by ball
Посмотреть сообщение
Oh, now I see you have two dimensional enum. There is other structure. Try this

Код:
CMD:testfunc(playerid, params[])
{
	randomfunc(playerid, ShamalMissions[EndMission[playerid]]);
	return 1;
}

stock testfunc(playerid, theEnum[_Mission])
{
    CreateDynamicCP(theEnum[LoadX], theEnum[LoadY], theEnum[LoadZ], 20.0, -1, -1, playerid);
}
Thanks a lot man! Appreciate it.
Reply


Messages In This Thread
Function to read from enum - by Jimmy0wns - 24.02.2015, 13:23
Re: Function to read from enum - by ball - 24.02.2015, 14:54
Re: Function to read from enum - by Jimmy0wns - 24.02.2015, 15:52
Re: Function to read from enum - by ball - 24.02.2015, 16:04
Re: Function to read from enum - by Jimmy0wns - 24.02.2015, 16:25
Re: Function to read from enum - by Jimmy0wns - 24.02.2015, 16:47
Re: Function to read from enum - by ball - 24.02.2015, 16:53
Re: Function to read from enum - by Jimmy0wns - 24.02.2015, 17:05

Forum Jump:


Users browsing this thread: 2 Guest(s)