SA-MP Forums Archive
SetPVarInt/GetPVarInt help - 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)
+--- Thread: SetPVarInt/GetPVarInt help (/showthread.php?tid=453494)



SetPVarInt/GetPVarInt help - Magic_Time - 25.07.2013

Does SetPVarInt get updated?


Re: SetPVarInt/GetPVarInt help - Scenario - 25.07.2013

What the hell do you mean "get updated?" SetPvarInt will remain the value that you set it to...

Are you on drugs?


Re: SetPVarInt/GetPVarInt help - RajatPawar - 25.07.2013

SetPVar<Datatype> will ONLY get updated when you use GetPVar<Datatype>! And of course, it's going to get updated once you change it.


Re: SetPVarInt/GetPVarInt help - Magic_Time - 25.07.2013

No I'm not.
I'm asking if the value set is going to be updated once it changes.


Re: SetPVarInt/GetPVarInt help - Scenario - 25.07.2013

It's pretty self explanatory. If you use SetPVar it's going to set the value to what you have set it to be. That's the only way it will "update." PVars are similar to normal variables, the difference is how they use the server's memory.