Quote:
Originally Posted by fysiks
That is not true. Pawn is a typeless language therefore, true = 1 and false = 0. Tagging a variable in Pawn is merely artificial unlike a typed language. One exception might be the Float tag.
So, you can simple set a boolean to 0.
IMO, you should never be looping through variables of different types. I believe that in some other languages, you would create multiple functions with different headers to achieve something like this.
Code:
myfunction(bool:bVariable)
myfunction(Float:fVariable)
where each one would use the appropriate underlying code corresponding to the input.
In your case, you can simply make one function to reset kills and another to reset the alive variable.
|
He might be able to make use of
PHP Code:
tagof(variable);
No, it's not function, but I like to use parenthesis with these PAWN operators, even if they are not needed.