Select random
#1

So, i have this array:

pawn Код:
new const g_LocationData[][e_LocData] =
{
    {"Bank", 2315.952880, -1.618174, 26.742187},
    {"LS Atrium", 1710.433715, -1669.379272, 20.225049}
};
Enum:

pawn Код:
enum e_LocData
{
    e_LocName[32],
    Float:e_LocX,
    Float:e_LocY,
    Float:e_LocZ
};
I want to select a random destionation and create a checkpoint if i type /destination, but i don't know how to loop the array i created, help?

And if possible, show the random name destionation, ex: "You teleported to Bank"
Reply


Messages In This Thread
Select random - by KinderClans - 18.08.2018, 21:45
Re: Select random - by EzeHermes - 19.08.2018, 02:29
Re: Select random - by KinderClans - 19.08.2018, 08:39
Re: Select random - by EzeHermes - 20.08.2018, 04:27
Re: Select random - by KinderClans - 20.08.2018, 09:05
Re: Select random - by Calisthenics - 20.08.2018, 09:33
Re: Select random - by KinderClans - 20.08.2018, 09:41
Re: Select random - by Sew_Sumi - 20.08.2018, 10:08
Re: Select random - by KinderClans - 20.08.2018, 10:13
Re: Select random - by Calisthenics - 20.08.2018, 10:14
Re: Select random - by KinderClans - 20.08.2018, 10:15
Re: Select random - by Calisthenics - 20.08.2018, 10:16
Re: Select random - by Sew_Sumi - 20.08.2018, 10:48
Re: Select random - by KinderClans - 20.08.2018, 10:57
Re: Select random - by Zeth - 20.08.2018, 11:17
Re: Select random - by KinderClans - 20.08.2018, 12:49

Forum Jump:


Users browsing this thread: 2 Guest(s)