Raised This Month: $ Target: $400
 0% 

convert enum to number and back. right method


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
karaulov
Senior Member
Join Date: Jul 2018
Old 12-14-2021 , 05:13   Re: convert enum to number and back. right method
Reply With Quote #1

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))))

Last edited by karaulov; 12-14-2021 at 05:16.
karaulov is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode