I didn’t see it in documentation, and I haven’t seen that in any plugin. It doesn’t show any warnings in compilation, so I suppose it works fine for cleaning variables that will not be used in the rest of function.
I know they can always be broken into two or more functions, I just wondered if it’s ok in Pawn…
Crap example:
Code:
test(){
new line[72]
{
new filepath[67], len
get_configsdir( filepath , 66 )
format(filepath , 66 , "%s/maps.ini", filepath)
read_file (filepath, 2, line, 71, len)
}
// […]
}