Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error compiling a mod
#1
When I compile my mod I get the following error:
unknown function: hscounter

This is what my "hscounter" looks like:

PHP Code:
headshotMadness()
{
    
self endon("disconnect");
    
self endon("death");
    
self endon("stop_hs_madness");
    
    
self.startHeadshots self.headshots;
    
self iPrintLnBold("^2Headshot madness for 20 seconds starts NOW!");
    
    while(
1)
    {
        
self.hscounter destroy();
        
self.hscounter createFontString"default"1.5 );
        
self.hscounter setPoint"center""center"0);
        
countheadshots self.headshots startHeadshots;
        
self.hscounter setText("^1Headshots: ^7"countheadshots);
        
self waittill("hs_madness_update");
    }


Now as u can see this is not supposed to be a function at all, merely just a counter. And this is the only function where I use "hscounter" + one other function where I just use self.hscounter destroy().
Also I heard from a friend of mine that he had similar problems with counters, so is this some kind of a common problem or is there something I should know about?

I already tried things like declaring the hscounter in init(). Because I thought that the error meant that, when my function is tryin to destroy the hscounter, it doesn't really exist yet.

But that didn't work, so yeah, any help is appreciated!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help error when run mod mr.apple 9 6,116 09-24-2013, 21:49
Last Post: Nekochan
  Help COD mw3 Error Couln't load image 3_cursor3:s Paylgs 2 13,569 07-18-2013, 18:46
Last Post: Nekochan
  Mod Error! help please Brandeeno 2 3,781 07-11-2013, 21:06
Last Post: Brandeeno
  Help xkmod error Domino29 2 4,198 07-11-2013, 20:07
Last Post: Brandeeno
  Help mw3 addon error [HARD] Tony. 2 4,136 06-08-2013, 00:32
Last Post: master131
  Help Freaking weird error when starting server!!!! Misterio 5 4,478 04-23-2013, 01:47
Last Post: Misterio
  d3d9 error magnuze 3 4,019 04-09-2013, 14:26
Last Post: NyZzE
  Help Server Script Compile Error when loading ExtremeBunkerMaker lolmoon 3 3,663 04-09-2013, 03:11
Last Post: lolmoon
  error CheGuevara 2 2,726 04-07-2013, 17:39
Last Post: CheGuevara
  Help error code [HARD] Tony. 2 2,822 03-23-2013, 00:19
Last Post: 8q4s8

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.