Delete PVar
#1

Hey Guys!

If I use DeletePVar(), it's the same if I set the variable to 0?

Nonameman
Reply
#2

I'm pretty sure that it removes it completely. But I don't use PVars that much, so...
Reply
#3

It is getting deleted so actually value will also be 0 if you create it again.
Reply
#4

Pvars will return 0 if they don't exist anyway (i think). So if you did
pawn Код:
if(GetPvarInt,"varname")==0)
If "varname" doesn't exist that statment would be true.
https://sampwiki.blast.hk/wiki/Per-player_variable_system

EDIT: just realised that has nothing to do with his question lolz
Reply
#5

I guess deleting it would save more memory, because setting it it 0 should basically still keep that variable.
Reply
#6

Thank You All!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)