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
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-13-2014 , 11:40   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #21

Again, would be nice if there was on for SourceMod as some of the AMXX compile errors/warnings as well as runtime errors in it.
WildCard65 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 06-13-2014 , 23:25   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #22

I got error 208 yesterday,

Code:
warning 208: function with tag result used before definition, forcing reparse
I can't recreate the error, but are related to tags using with return values in functions, and declarations after use functions i think
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-14-2014 , 06:42   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #23

Quote:
Originally Posted by Nextra View Post

I would strongly recommend sectioning the post more to clearly distinguish between compiler errors, warnings and run-time errors. Right now it is confusing that you frequently switch between different classes of errors.

Have a useful ordering for your examples. Starting off with run-time error 10, continuing with error 3 and then going back to 11 makes skimming through the list cumbersome.
Sure .. Next First thing i will do is sectioning and putting the errors /warnings sequentially.
Quote:
Too many of your examples contain "you already know what's wrong" style answers
The point behind that was Description itself contains the solution of the problem encountered.Still i try to add more code snippets and possible solutions even in such cases.

Quote:
You list some specific examples for run-time error 10 and have them scattered throughout the list.
.. Added to TO DO list

Quote:
The list also mixes three styles of explanation: Full explanation by you, explanation supplemented with a user post and a direct link to a user post.
Again, I could have copied the explanations from other posts but what i wanted is giving the appropriate credits indirectly to users who actually gave a nice solution to someone somewhere on a thread buried in forums.

Quote:
A tag mismatch is a warning, not an error.

is_user_connected already performs the IsPlayer check you are suggesting
Thank you for pointing out the mistakes. Fixed.

Quote:
Originally Posted by Black Rose View Post
I do not explain anything. How it occurs is pretty self-explanatory. How to avoid it is too.
The code I posted is just a display of how it is impossible to make a bigger 2d/3d array optional.
Thats is exactly the purpose of the post How the error is encountered ? and how to fix that ..
According to me your explanation does both

Quote:
Originally Posted by WildCard65 View Post
Again, would be nice if there was on for SourceMod as some of the AMXX compile errors/warnings as well as runtime errors in it.
Sorry, i have no knowledge about sourcemod..

Quote:
Originally Posted by ^SmileY View Post
I got error 208 yesterday,

Code:
warning 208: function with tag result used before definition, forcing reparse
I can't recreate the error, but are related to tags using with return values in functions, and declarations after use functions i think
I ll dig up something for this and add it to the list.Ty.
__________________
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 devilicioux; 06-14-2014 at 06:46.
devilicioux is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 06-14-2014 , 14:17   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #24

Quote:
Error: Only a single statement (or expression) can follow each "case"
Number 22 and 24 are repeating. Just unite them.

Also you can add this run-time error
Quote:
[AMXX] Run time error 25: parameter error
String formatted incorrectly - parameter PARAMETER_NUMBER (total PARAMETER_COUNT)
It happens when you have formatted any string and have parameter count mismatch like in here:
Code:
client_print(id, print_chat, "%s %s   %s", someString, someString2)
it should have 3 parameters, but only 2 are mentioned and 1 is lost.
__________________


Last edited by NiHiLaNTh; 06-14-2014 at 14:17.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 06-16-2014 , 04:12   Re: Most Common Errors You Can Encounter Every Now and Then
Reply With Quote #25

Quote:
Originally Posted by NiHiLaNTh View Post
Number 22 and 24 are repeating. Just unite them.

Also you can add this run-time error
It happens when you have formatted any string and have parameter count mismatch like in here:
Code:
client_print(id, print_chat, "%s %s   %s", someString, someString2)
it should have 3 parameters, but only 2 are mentioned and 1 is lost.
OOps Fixed..

and Ty for the contribution ..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 09:27.


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