AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with error (MySQL) (https://forums.alliedmods.net/showthread.php?t=26622)

MrBS 04-05-2006 20:13

Help with error (MySQL)
 
To make it clear, this is my plugin created by me and only me. Anyways, when I'm running my plugin on my server for a while, I start getting an error, and it isnt just once. It can make up to a 300+ KB file of errors very shortly. This usually makes me shut down my server, otherwise it just keeps erroring till I shut it down. The error is with MySQL natives I'm guessing. The error is:

Code:
L 04/05/2006 - 07:40:04: [MYSQL] Invalid result handle -1 L 04/05/2006 - 07:40:04: [AMXX] Displaying debug trace (plugin "notreleasedyet.amxx") L 04/05/2006 - 07:40:04: [AMXX] Run time error 10: native error (native "dbi_nextrow") L 04/05/2006 - 07:40:04: [AMXX]    [0] notreleasedyet.sma::activehud (line 507)

I have tried editing some stuff but no luck, and also the line will change to the end of my plugin error about 50 times change to the spot error once, then go back to the random line. I really have no clue what could be the problem. I tried to see if remove_task(id) on disconnect could stop it, due to the amount of people leaving and entering but nothing worked. If anyone knows how to fix this it would be greatly appreciated.

Brad 04-05-2006 20:23

Show the code that is causing the error.

MrBS 04-05-2006 20:42

Eh fixed myself.

Freecode 04-05-2006 20:46

lmao. The code is GPL'ed so if anyone feels like taking code out, they can.
Plus i doubt anybody wants crappy code.

Where is result declared?

Plus your not doing any error checking. YOur totaly ignoring the errors. Not even 1 check


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

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