Code: Show/Hide int timervalue = testtimer().ReadTimer(); |
Code: Show/Hide [...]
#include "timerms.h" [...] class botInfo { // Put bot data here timerms testtimer(); [...] |
Code: Show/Hide #include "spawn.h"
[...] void botInfo::gotHelp(Player *p, Command *c) { [...] int timervalue = testtimer().ReadTimer(); //Could be any other non-void call, it does the same error [...] |
Code: Show/Hide #include "spawn.h"
#define NOT_INITIALIZED -1 class timerms { int starttime; int pausetime; public: timerms() { ResetTimer(); } bool isrunning; bool ispaused() { return (!isrunning && pausetime != NOT_INITIALIZED);} void StartTimer(int starttime); void StartTimer(); void PauseTimer(int pausetime); void PauseTimer(); void ResumeTimer(int resumetime); void ResumeTimer(); void ResetTimer(); int ReadTimer(); ~timerms() { } }; |
Code: Show/Hide #include "spawn.h"
[...] int timerms::ReadTimer() { return 0; //No matter what code in here, gives the same error } |
Code: Show/Hide timerms botInfo::testtimer()
{ //Stuff } |
Code: Show/Hide class botInfo
{ // Put bot data here timerms testtimer(); |