What is faster?
#1

Hi, i want to know what is faster for my Admin system:

Shall i use stocks, like UserMoney(playerid) wich gets the players money out of his file, or when somebody login, all his stats wil be saved in arrays like 'new UserMoney[MAX_PLAYERS];'?
Reply
#2

i think you must use new PlayerMoney[playerid] for example
which is saved in a file, it's a lot better
Reply
#3

I don't understand you too well, but you should save all info saving to one enum
pawn Код:
enum Info
{
  Money,
  AdminLevel,
};
new PlayerInfo[MAX_PLAYERS][Info];
and so on.
Reply
#4

So a enum is the most fast?
Reply
#5

Quote:
Originally Posted by Remi-X
So a enum is the most fast?
To my knowledge, yes.
Reply
#6

ok, tnx
Reply
#7

That depends on what you need.
If you wanna save admin money when logs out, both using, please.
Else only momory.
File system uses for save/load.
Memory uses for in-game.
Think what you need first, think want is more efficient then.(my programing opinion)
Reply
#8

I really don't know what you mean
Reply
#9

Script more will get what I mean XD
Reply
#10

watefak
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)