Raised This Month: $ Target: $400
 0% 

[Solved] Errors... lots of in-game errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 09-14-2007 , 07:35   [Solved] Errors... lots of in-game errors
Reply With Quote #1

Ive been working on this plugin every day for over a month now.
It compiles fine without warnings.
But when I tested it yesterday, I got a lot of error messages in my console, and the plugin dont do anything. It doesnt even register the cvars.
I have no idea of how to fix this.

EDIT: I fixed it. I had forgoten to remove this line:
register_event("WeapPickup", "event_weappickup", "be", "1!0");
I registered lots of cvars in plugin_init() and checked which cvars that worked. Those cvars that I registred below that line didn't work.
Attached Files
File Type: sma Get Plugin or Get Source (bacon_mod.sma - 726 views - 63.8 KB)

Last edited by potatis_invalido; 09-14-2007 at 19:55.
potatis_invalido is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 09-14-2007 , 13:39   Re: Errors... lots of in-game errors
Reply With Quote #2

If its not registering cvars even, then something is erroring during plugin_init.

A good chance is your hamdata.ini is not installed properly for hamsandwich, but without the actual error messages, that is just a guess.
__________________
fyren sucks
sawce is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-14-2007 , 13:56   Re: Errors... lots of in-game errors
Reply With Quote #3

Try to remove this line as the function doesn't exist.
Code:
register_forward(FM_CmdStart, "forward_cmdstart");
ConnorMcLeod is offline
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 09-14-2007 , 14:39   Re: Errors... lots of in-game errors
Reply With Quote #4

Quote:
Originally Posted by sawce View Post
If its not registering cvars even, then something is erroring during plugin_init.

A good chance is your hamdata.ini is not installed properly for hamsandwich, but without the actual error messages, that is just a guess.
Quote:
Originally Posted by connorr View Post
Try to remove this line as the function doesn't exist.

Code:
register_forward(FM_CmdStart, "forward_cmdstart");
Thank you for your input.
I removed the register_forward and I upgraded to Amx Mod X 1.8 (including hamdata.ini), but I still get errors.
It worked fine the day before yesterday.

Last edited by potatis_invalido; 09-14-2007 at 14:50.
potatis_invalido is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-14-2007 , 14:55   Re: Errors... lots of in-game errors
Reply With Quote #5

Quote:
but without the actual error messages..
__________________
Arkshine is offline
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 09-14-2007 , 14:56   Re: Errors... lots of in-game errors
Reply With Quote #6

I'm getting to many errors to list... functions not found, invalid pcvar pointers, invalid variables etc. Amx Mod X is spamming my console.
potatis_invalido is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 09-14-2007 , 15:09   Re: Errors... lots of in-game errors
Reply With Quote #7

Quote:
Originally Posted by potatis_invalido View Post
I'm getting to many errors to list... functions not found, invalid pcvar pointers, invalid variables etc. Amx Mod X is spamming my console.
Enable logging, then attach the log file.
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 09-14-2007 , 16:57   Re: Errors... lots of in-game errors
Reply With Quote #8

make sure the stuff in plugin_init() is in the right case. i had a problem with that when i did my spy speed plugin, it didnt work when i registered removespeed, because i put removeSpeed as the name of the procedure (the capital s was the diff)
__________________
M249-M4A1 is offline
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 09-14-2007 , 18:13   Re: Errors... lots of in-game errors
Reply With Quote #9

Quote:
Originally Posted by Pro Patria Finland View Post
Enable logging
Do you mean debug mode?
potatis_invalido is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode