AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Errors... lots of in-game errors (https://forums.alliedmods.net/showthread.php?t=60838)

potatis_invalido 09-14-2007 07:35

[Solved] Errors... lots of in-game errors
 
1 Attachment(s)
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.

sawce 09-14-2007 13:39

Re: Errors... lots of in-game errors
 
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.

ConnorMcLeod 09-14-2007 13:56

Re: Errors... lots of in-game errors
 
Try to remove this line as the function doesn't exist.
Code:
register_forward(FM_CmdStart, "forward_cmdstart");

potatis_invalido 09-14-2007 14:39

Re: Errors... lots of in-game errors
 
Quote:

Originally Posted by sawce (Post 531271)
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 (Post 531280)
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.

Arkshine 09-14-2007 14:55

Re: Errors... lots of in-game errors
 
Quote:

but without the actual error messages..

potatis_invalido 09-14-2007 14:56

Re: Errors... lots of in-game errors
 
I'm getting to many errors to list... functions not found, invalid pcvar pointers, invalid variables etc. Amx Mod X is spamming my console.

Pro Patria Finland 09-14-2007 15:09

Re: Errors... lots of in-game errors
 
Quote:

Originally Posted by potatis_invalido (Post 531299)
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. :)

M249-M4A1 09-14-2007 16:57

Re: Errors... lots of in-game errors
 
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)

potatis_invalido 09-14-2007 18:13

Re: Errors... lots of in-game errors
 
Quote:

Originally Posted by Pro Patria Finland (Post 531307)
Enable logging

Do you mean debug mode?


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

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