When I compile this is my error.
C:\Documents and Settings\Matt\Desktop\Eoserv 188\src\console.hpp:142: error: invalid conversion from 'unsigned int' to 'const char*'
C:\Documents and Settings\Matt\Desktop\Eoserv 188\src\console.hpp:142: error: initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc =std::allocator<char>]
I followed a video guide by digitx and when he compiled it worked perfectly I followed step by step what to do and I got these warning.
Edit:I figured out my problem It says i get the error on line 144 but i don't have a line 144.
/* $Id: console.hpp 175 2009-12-21 23:58:39Z sausage $
* EOSERV is released under the zlib license.
* See LICENSE.txt for more info.
*/
#ifndef CONSOLE_HPP_INCLUDED
#define CONSOLE_HPP_INCLUDED
#include "fwd/console.hpp"
#include <string>
#include "script.hpp"
namespace Console
{
extern bool Styled[2];
#if defined(WIN32) || defined(WIN64)
enum Color
{
COLOR_BLUE = 1,
COLOR_GREEN = 2,
COLOR_CYAN = 3,
COLOR_RED = 4,
COLOR_MAGENTA = 5,
COLOR_YELLOW = 6,
COLOR_GREY = 7,
COLOR_BLACK = 8
};
#else // defined(WIN32) || defined(WIN64)
enum Color
{
COLOR_BLUE = 34,
COLOR_GREEN = 32,
COLOR_CYAN = 36,
COLOR_RED = 31,
COLOR_MAGENTA = 35,
COLOR_YELLOW = 33,
COLOR_GREY = 37,
COLOR_BLACK = 30
};
#endif // defined(WIN32) || defined(WIN64)
enum Stream
{
STREAM_OUT,
STREAM_ERR
};
void Out(std::string f, ...);
void Wrn(std::string f, ...);
void Err(std::string f, ...);
void Dbg(std::string f, ...);
inline void ScriptRegister(ScriptEngine &engine)
{
SCRIPT_REGISTER_GLOBAL_FUNCTION("void Out(string)", Out);
SCRIPT_REGISTER_GLOBAL_FUNCTION("void Wrn(string)", Wrn);
SCRIPT_REGISTER_GLOBAL_FUNCTION("void Err(string)", Err);
SCRIPT_REGISTER_GLOBAL_FUNCTION("void Dbg(string)", Dbg);
}
}
#endif // CONSOLE_HPP_INCLUDED
This is line 1-71 I don't have a line 144.