#1

What is difference between using SetPVarInt and variable[MAX_PLAYERS]? What is better and which one should I use?
Reply
#2

"PVars are several times slower than regular variables. It is generally more favorable to trade in memory for speed, rather than the other way round."

Source: https://sampwiki.blast.hk/wiki/Per-player_variable_system
Reply
#3

That has all been explained multiple times, please search a little. Calling a function is slower than accessing a variable. Only use PVars for cross script sharing or in cases where an array would be overkill (for example passing a value to the next dialog).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)