Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
Is there still "bug" with PVars - when restarting sever with GMX PVars destroys ? (0.3b)
When do i need to use #pragma
For example i dont use params in zcmd/dcmd command.. i need to define it (#pragma unused params) ?
If it`s suggested then what does it give? (Stable script, unwaste bytes or whaat?)
Posts: 613
Threads: 11
Joined: Aug 2010
Reputation:
0
Not sure about the pvars, but I think that they reset.
I suggest you to use OnPlayercommandtext for the cmds you dont use params, because it will be faster (tested)
Posts: 6,129
Threads: 36
Joined: Jan 2009
You can create a workaround for saving PVars and loading them again, if you need to, it's not that hard.
https://sampforum.blast.hk/showthread.php?tid=136868 - Joe Staff (SilentHunteR) even made a function to save all PVars, and for loading too.
As for the largest retard of the forum:
Quote:
Not sure about the pvars, but I think that they reset.
I suggest you to use OnPlayercommandtext for the cmds you dont use params, because it will be faster (tested)
|
I'd love to see some speed results myself.
And for #pragma unused in commands, check what ****** posted. Though, it's a requirement for dcmd.