Tag mismatch between cs_get_user_team() and write_short()
I'm trying to change the player's frags and deaths on the scoreboard, and I'm getting a tag mismatch warning for the team variable.
PHP Code:
I know I can fix this in one of two ways:
What should I do? |
Re: Tag mismatch between cs_get_user_team() and write_short()
If you just want to change the score, use HamSandwich.
PHP Code:
|
Re: Tag mismatch between cs_get_user_team() and write_short()
write_short() is used to write a short integer, it doesn't know how you're going to use every single variable that it will be used with. After all, most tags are for convenience in Pawn (e.g. to find mistakes at compile time), they do not actually define a data type like in strictly typed languages.
So, no, de-tagging a variable is not bad practice when done for the proper purposes (like in this case). The act of de-tagging the variable is you the coder saying, yes, this is where I need to use this variable. |
All times are GMT -4. The time now is 21:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.