13.12.2015, 21:31
No pawn does not have function to delete variable. Variables are deleted when scope ends.
Some will say that variables can be deleted with emit, and yes they can but that is completely different story.
Some alternatives are pVar's - dynamic variables per player
gVar's plugin - same as pVar's only they are global, not only per player ( https://sampforum.blast.hk/showthread.php?tid=151076 )
Memory Access plugin - C/C++ malloc wrapper ( https://sampforum.blast.hk/showthread.php?tid=451381 )
y_malloc from YSI librabry by ******, written in pawn and assembler (#emit)
EDIT: for the post above, just pass A as variable... Or define it globally...
Some will say that variables can be deleted with emit, and yes they can but that is completely different story.
Some alternatives are pVar's - dynamic variables per player
gVar's plugin - same as pVar's only they are global, not only per player ( https://sampforum.blast.hk/showthread.php?tid=151076 )
Memory Access plugin - C/C++ malloc wrapper ( https://sampforum.blast.hk/showthread.php?tid=451381 )
y_malloc from YSI librabry by ******, written in pawn and assembler (#emit)
EDIT: for the post above, just pass A as variable... Or define it globally...