From string to Enum variable
#3

PHP код:
new GetRandomNumber(1,2);
switch(
r)
{
case 
0: {Maps[id][black1]}
case 
1: {Maps[id][black2]}

Could be a solution tbh
Reply


Messages In This Thread
From string to Enum variable - by PeanutButter - 20.01.2017, 23:13
Re: From string to Enum variable - by AmigaBlizzard - 20.01.2017, 23:23
Re: From string to Enum variable - by iLearner - 20.01.2017, 23:43
Re: From string to Enum variable - by Dutheil - 21.01.2017, 06:16
Re: From string to Enum variable - by Vince - 21.01.2017, 09:41
Re: From string to Enum variable - by Dutheil - 21.01.2017, 09:51

Forum Jump:


Users browsing this thread: 1 Guest(s)