Good / Bad - Your opinion
#1

Hey,

I asked myself if it's a good scriptingstyle to save the direction of the Userfile in an enum. So you don't have to wrte these lines everytime.

Without enum you have to write the following everytime:

PHP код:
new pname[24], file[36];
GetPlayerName(playeridpnamesizeof(pname));
format(filesizeof(file), "Users/%s.ini"pname);
dini_Set(file"test""test"); 
With enum only this:

PHP код:
dini_Set(PlayerInfo[playerid][file], "test""test"); 
What's your opinion regarding this?
Reply


Messages In This Thread
Good / Bad - Your opinion - by GiS - 08.01.2011, 15:19
Re: Good / Bad - Your opinion - by Mr.Stranger - 08.01.2011, 15:24
Re: Good / Bad - Your opinion - by DVDK - 08.01.2011, 15:27
Re: Good / Bad - Your opinion - by Joe Staff - 08.01.2011, 15:27
Re: Good / Bad - Your opinion - by GiS - 08.01.2011, 15:27
Re: Good / Bad - Your opinion - by JaTochNietDan - 08.01.2011, 15:28
Re: Good / Bad - Your opinion - by Mr.Stranger - 08.01.2011, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)