08.01.2011, 15:19
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:
With enum only this:
What's your opinion regarding this?
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(playerid, pname, sizeof(pname));
format(file, sizeof(file), "Users/%s.ini", pname);
dini_Set(file, "test", "test");
PHP код:
dini_Set(PlayerInfo[playerid][file], "test", "test");