PVar Question
#1

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.
Reply
#2

Quote:

PVars can hold very large strings using dynamically allocated memory.

Yea I suppose the wiki dosent even answer this question via the length -.-
Reply
#3

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?
Reply
#4

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.
Reply
#5

I don't think it's relating to 'integers' maybe string length.
Reply
#6

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
Reply
#7

Not sure, but I think one character in PVarString can't be over 255, but I have saved millions in PVarInts.
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)