PVar Question - 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: PVar Question (
/showthread.php?tid=213395)
PVar Question -
Whizion - 19.01.2011
I read somewhere that value of a PVar can't go over 255 or something, i wasn't paying much atention so i forgot the details and now it came back to haunt me so im scared that something is going to go wrong with my script.
Does it ring a bell to anyone? If so, could you tell me what is it about? Thanks.
Re: PVar Question -
Lorenc_ - 19.01.2011
Quote:
PVars can hold very large strings using dynamically allocated memory.
|
Yea I suppose the wiki dosent even answer this question via the length -.-
Re: PVar Question -
Whizion - 21.01.2011
I think it's not the problem with strings, but integers...
Anyway as i said i wasn't paying much attetion, the only thing that i remember is that it's something with PVars and the number 255?
Re: PVar Question -
Ash. - 21.01.2011
Surely it would be simply the actual integer limit. (Not exactly sure what it is but some searching should pop it up) - If its above the integer limit, it will overflow and crash.
Re: PVar Question -
Joe Staff - 21.01.2011
I don't think it's relating to 'integers' maybe string length.
Re: PVar Question -
Kwarde - 21.01.2011
Ehm, I've ever read, that PVar's were made for bigger strings. They're supposed to carry larger strings (larger then 255 chars).
Wait I'll search for you. It's somewhere in an topic that someone made, the speed difference between normal vars and PVars, and then someone told that.
Please wait
EDIT: Can't find it no more... :S
Re: PVar Question -
MadeMan - 21.01.2011
Not sure, but I think one character in PVarString can't be over 255, but I have saved millions in PVarInts.
Re: PVar Question -
Sascha - 21.01.2011
well I doubt it has an integer limit... there isn't much different in storing "255" or "999" in a variable..
however as silenthuntr said, it would be realistic with a string limit