Code: Show/Hide cin >> value; |
Code: Show/Hide string s;
getline( cin, s ); |
Code: Show/Hide config("DefaultLevelFile","DefaultLevelFile is the map that player will see when entering \n\tyour zone, below enter the name of the map file...","Misc","DefaultLevelFile");
config("Port","Set this number to any value ranging between 1000 and 30000\n\t(CANT USE 4991 and 185)","Misc","Port"); config("SysOp password","SysopPassword will be one you will be using a lot, for this allows you \n\tto use all * and ? commands available, letting you have the \n\thighest control in your zone","Password","SysopPassword"); config("Energy password","EnergyPassword is the password people can use to turn on or off public \n\tenergy viewing.","Password","EnergyPassword"); config("Super Moderator password","For main staff in your zone","Password","SuperModeratorPassword"); config("Moderator password","For moderators in your zone","Password","ModeratorPassword"); config("VIP password","Not used anymore, set it to anything..","Password","VIPPassword"); config("Zone name","Set this to what you want your zone to be named...","Billing","ServerName"); |
Code: Show/Hide const int INDEX_NAME = 0; const int INDEX_HINT = 1; const int INDEX_SECTION = 2; const int INDEX_KEY = 3; const char* configValues[][4] = { {"DefaultLevelFile","DefaultLevelFile is the map that player will see when entering \n\tyour zone, below enter the name of the map file...","Misc","DefaultLevelFile"}, {"Port","Set this number to any value ranging between 1000 and 30000\n\t(CANT USE 4991 and 185)","Misc","Port"}, {"SysOp password","SysopPassword will be one you will be using a lot, for this allows you \n\tto use all * and ? commands available, letting you have the \n\thighest control in your zone","Password","SysopPassword"}, {"Energy password","EnergyPassword is the password people can use to turn on or off public \n\tenergy viewing.","Password","EnergyPassword"}, {"Super Moderator password","For main staff in your zone","Password","SuperModeratorPassword"}, {"Moderator password","For moderators in your zone","Password","ModeratorPassword"}, {"VIP password","Not used anymore, set it to anything..","Password","VIPPassword"}, {"Zone name","Set this to what you want your zone to be named...","Billing","ServerName"}, }; for (int x = 0; x < sizeof(configValues)/sizeof(configValues[0]);++x) config(configValues[INDEX_NAME],configValues[INDEX_HINT],configValues[INDEX_SECTION],configValues[INDEX_KEY]); |
Quote: |
{"VIP password","Not used anymore, set it to anything..","Password","VIPPassword"}, |