convert enum to number and back. right method
How to convert TeamName to integer and back ?
new integer1 = TEAM_CT; new TeamName:team1 = 2; tag mismatch |
Re: convert enum to number and back. right method
Where is your enum?
And what do you mean with that title? O_o? |
Re: convert enum to number and back. right method
Huh ?
Simple method to replace team name: PHP Code:
|
Re: convert enum to number and back. right method
No need just cast between enums and integers.
new integer1 = TEAM_CT; new TeamName:team1 = 2; tag mismatch How to convert enum to integer and back without tag mismatch)))) |
Re: convert enum to number and back. right method
Code:
The variable tag must be the same as the value tag. _: is used as a blank tag. |
Re: convert enum to number and back. right method
new integer1 = _:TEAM_CT;
new TeamName:team1 = TeamName:2; |
Re: convert enum to number and back. right method
Quote:
Also, tagging/detagging is only needes for strong tags(starting with a upper case letter). For weak tags nothing needs to be done. |
| All times are GMT -4. The time now is 11:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.