Forum > Serverside Modding
[C++] Trinity Announce System
<< < (2/5) > >>
Laniax:
--- Quote from: "schlumpf" ---I hope their rank variable is enumerated. You may want to use that enumeration instead. --- End quote ---
It is, and GetSecurity() returns the value of that. yet you have to put a string with that int yourself.
schlumpf:
--- Quote from: "Laniax" --- --- Quote from: "schlumpf" ---I hope their rank variable is enumerated. You may want to use that enumeration instead. --- End quote ---
It is, and GetSecurity() returns the value of that. yet you have to put a string with that int yourself. --- End quote --- Yes, but you shouldn't compare to 1, 2 and 3 then but against the names of the enumeration, to be safe and verbose.
Laniax:
--- Quote from: "schlumpf" --- --- Quote from: "Laniax" --- --- Quote from: "schlumpf" ---I hope their rank variable is enumerated. You may want to use that enumeration instead. --- End quote ---
It is, and GetSecurity() returns the value of that. yet you have to put a string with that int yourself. --- End quote --- Yes, but you shouldn't compare to 1, 2 and 3 then but against the names of the enumeration, to be safe and verbose. --- End quote ---
Yeah alright :P i wasn't applying code styles eitherway since i wrote this in 10secs. Yet with your way it would look like this;
--- Code: --- case SEC_MODERATOR: rank = "Moderator"; break; case SEC_GAMEMASTER: rank = "Game Master"; break; case SEC_ADMINISTRATOR: rank = "Server Admin"; break; --- End code ---
Everon Mightbane:
Alright, Just compiling now. Lets see how this goes :D Thanks for your help everyone.
Everon Mightbane:
It didn't work so far but I'm going to tinker with it, one thing though. As trinity only has the account permissions 0-4, 4 being the console, is there anyway to increase the number? Or change it to like az a p - As in alphabetical account permissions?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
|