Question Info: PVar or classic array with MAX_PLAYERS
#1

what is better?

PVar or classic array method with MAX_PLAYERS ?

suggest...
Reply
#2

enum
Reply
#3

i prefer array & enum , like this

pawn Код:
enum PlayerData
{
score,
Float:health,
Float:armour
};
new PlayerInfo[MAX_PLAYERS][PlayerData];
Reply
#4

We have been over this many times. PVars are much slower and they should only be used to share data across scripts.
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=268499
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)