Raised This Month: $51 Target: $400
 12% 

Most Common Errors You Can Encounter Every Now and Then


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-03-2014 , 04:53   Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #1

Most Common Errors You Can Encounter Every Now and Then
- Devilicioux
Thanks to Antichristus, Black Rose, NiHiLaNTh, FlickeRr

As the title says .. I am going to place all the common errors that occur with the possible solution of that with example threads which have been buried into the sub forums despite of the perfect solution just because people dont care about searching before posting.Most of them just want the veteran title and just spam and post for post counts.

No matter how smart or how careful you are, errors are your constant companion. With practice, you will get slightly better at not making errors, and much, much better at finding and correcting them.

ERROR VS WARNING
Definition


TYPE OF ERRORS
Type Of Errors

So lets start off with our Topic

Have a look at
how to fix some common errors[TUT] by devicenull
for some common errors and their explanations.

One of the best thing about AMXX errors is When you get a error, it will show a full trace of the problem which eases out the pain of error solving by restricting it to the single line or a part of code where the error occurs.

Here goes the List of Errors (Click on Spoilers to get the description and solution):

RUNTIME ERRORS

[AMXX] Run time error 3: stack error
Error Info



[AMXX] Run time error 4 (index out of bounds)
Error Info



[AMXX] Run time error 10: native error (native "cs_get_user_team")
Error Info



[AMXX] Run time error 10: native error (native "menu_display")
Error Info



[AMXX] Run time error 10: native error (native "OrpheuGetFunction")
Error Info



[AMXX] Run time error 11: divide
Error Info



[AMXX] Run time error 25: parameter error
Error Info



[CSTRIKE] Invalid player / [FUN] Invalid player etc
Error Info



Error Invalid menu id 0
Error Info



[HAMSANDWICH] Invalid HamHook handle
Error Info



Invalid multi-lingual line (file "cstrike/addons/amxmodx/data/lang/something.txt" line 1)
Error Info



[ORPHEU] Invalid parameters count. Expected [3]. Got [1]
Error Info



Invalid CVAR pointer
Error Info



[HAMSANDWICH] Invalid entity *
Error Info



COMPILATION ERRORS


Error 002: only a single statement (or expression) can follow each "case"
Error Info



error 035: argument type mismatch (argument 2)
Error Info



error 052 - multi-dimensional arrays must be fully initialized
Error Info



error 075: input line too long (after substitutions)
Error Info



Error 088: Number of arguments does not match to definition (line something)
Error Info



Fatal error 100: cannot read from file: "something"
Error Info


Warning 236: unknown parameter in substitution (incorrect #define pattern)
Error Info


Undefined symbol "<any>"
Error Info



Error: Initialization data exceeds declared size on line
Error Info



Error: expected token: ";" but found "-identifier-"
Spoiler



WARNINGS


Tag mismatch
Warning Info


warning 217: loose indentation
Spoiler


Warning 236: unknown parameter in substitution (incorrect #define pattern)
Warning Info


Warning 237 - recursive function name
Warning Info


I will keep improving and updating the Thread forever until this thread becomes a 1 stop heaven for coders not able to narrow out the errors they getting

** If you have something to Add up that i missed or something to correct what i wrote.. PM or comment for contribution Obviously you will get the credits

I hope this makes life of coders a little easier [Because i Like Orange ]
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then

Last edited by YamiKaitou; 06-19-2014 at 04:22. Reason: added more errors/info
devilicioux is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-03-2014 , 11:33   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #2

Wouldn't this best fit in scripting help?
WildCard65 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 06-03-2014 , 13:33   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #3

This would be better placed in Code Snippets/ Tutorials. Its probably the best spot for people to read this
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-03-2014 , 14:25   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #4

Quote:
Originally Posted by WildCard65 View Post
Wouldn't this best fit in scripting help?
Quote:
Originally Posted by DruGzOG View Post
This would be better placed in Code Snippets/ Tutorials. Its probably the best spot for people to read this
Maybe some moderator can decide and do the needful moving of the post.
I had no idea where to post this .. But this post will surely help a lot of coding newbies like me and other ppl in narrowing the details of errors usually encountered.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 06-03-2014 , 14:51   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #5

the "search bar alternative" was here, and added this thread to the search tutorial's collections.
__________________
ANTICHRISTUS is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-04-2014 , 00:13   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #6

Quote:
Originally Posted by ANTICHRISTUS View Post
the "search bar alternative" was here, and added this thread to the search tutorial's collections.
My post seems to be glad of being a part of your post btw GJ on your post !!
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-04-2014 , 11:25   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #7

devil, why not make one for the sourcemod section, some of the error messages/compile errors/warnings are also in sourcemod.
WildCard65 is offline
Old 06-04-2014, 17:23
Black Rose
This message has been deleted by Black Rose. Reason: This has no relevance anymore
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-04-2014 , 17:36   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #8

I suggest you to change the thread title to something mentioning the main purpose of the thread. I mean, that many people will think these are compiling errors when see the titile, but they are actually error logs. So, put some "error log" in the title - to be maximum descriptive to the including inside.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-04-2014 , 22:49   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #9

Quote:
Originally Posted by Flick3rR View Post
I suggest you to change the thread title to something mentioning the main purpose of the thread. I mean, that many people will think these are compiling errors when see the titile, but they are actually error logs. So, put some "error log" in the title - to be maximum descriptive to the including inside.
He has both "run time" and compile errors. IMO they should not be called "error logs".
__________________

Last edited by fysiks; 06-04-2014 at 22:51.
fysiks is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-05-2014 , 01:42   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #10

THREAD UPDATED
- More errors added thanks to Black Rose.

Quote:
Originally Posted by WildCard65 View Post
devil, why not make one for the sourcemod section, some of the error messages/compile errors/warnings are also in sourcemod.
Sorry .. have no knowledge about the sourcemod. I am just a newbie learning Pawn ..

Quote:
Originally Posted by Black Rose View Post
Please don't link to that. It is really bad and AFAIK there is no good way of accomplishing that goal.

I think you see where this is going...
C:\Path\blahblah.sma(Line#) : error 075: input line too long (after substitutions)
Ummhmm .. got that .. Link removed.

And Error Added to the list.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux 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 11:25.


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