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
#2

it's better to write in enum
Reply
#3

Quote:
Originally Posted by Mr.Stranger
Посмотреть сообщение
it's better to write in enum
Indeed, and it's even better to do it all with MySQL.
Reply
#4

It's better to not use dini also

MySQL is far slower and leaves possible security risks
Reply
#5

Quote:
Originally Posted by DVDK
Посмотреть сообщение
Indeed, and it's even better to do it all with MySQL.
Why is it better with MySQL?
Reply
#6

If you're going to use a file saving system, I recommend using y_ini, it's faster and much better than dini.
Reply
#7

because it's the fastest and most neat way
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)