- struct INFO
- {
- if (thisclient->Session->accesslevel == 400) <--- can not have same accesslevel
- char charname["[Admin]"+17];
- if (thisclient->Session->accesslevel == 300) <--- C++ does not like else if
- char charname["[GM]"+17];
- else
- char charname[17];
but i can't change it that if the accsess level is 300, or 150, it will be with string before.
(i came from C# btw)
this is wasn't working for me ..
- struct INFO
- {
- if (thisclient->Session->accesslevel == 300)
- char charname["[Admin]"+17];
- else if (thisclient->Session->accesslevel == 300)
- char charname["[GM]"+17];
- else
- char charname[17];
- .
- .
- .
- .
Why isn't this code working ?
BTW, What about this code ?
- else if (strcmp(command, "logasgm")==0) // Getting Accsess Level
- {
- if((Config.Command_LogAsGM > thisclient->Session->accesslevel) && thisclient->CharInfo->isGM == true)
- SendGlobalMSG(CPlayer* thisclient, "GameMaster %i Is Now Logged In !", thisclient->CharInfo->charname);
- }