PVars, pragma etc. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PVars, pragma etc. (
/showthread.php?tid=175618)
PVars, pragma etc. -
GaGlets(R) - 10.09.2010
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?)
Re: PVars, pragma etc. -
Macluawn - 10.09.2010
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)
Re: PVars, pragma etc. -
GaGlets(R) - 10.09.2010
Mostly i want to know about pragma usage.
... i want that proof too
Re: PVars, pragma etc. -
Calgon - 10.09.2010
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.