SA-MP Forums Archive
[Tutorial] Warning and error list [WITH FIX] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Warning and error list [WITH FIX] (/showthread.php?tid=274028)

Pages: 1 2


Re: Warning and error list [WITH FIX] - Darnell - 14.08.2011

Quote:
Originally Posted by justsomeguy
View Post
Argument mismatch(argument 2).
Code:
SendClientMessage(playerid, "Hi", COLOR_WHITE);
Fix:
Code:
SendClientMessage(playerid, COLOR_WHITE, "Hi);
Actully it's
Code:
SendClientMessage(playerid, COLOR_WHITE, " Hi");



Re: Warning and error list [WITH FIX] - Y_Less - 14.08.2011

This would be more useful if it had some of the more obscure errors, for example calling a variable as a function or errors to do with variables you think are declared being undeclared (for example when they are static or you use them before you declare them). There are a few hundred compiler messages - check the PAWN language documentation for them all.


Re: Warning and error list [WITH FIX] - TheLoolyWiz - 02.09.2011

Nice Tut!


Re: Warning and error list [WITH FIX] - spedico - 26.12.2011

I am bumping this so new scripters can see this and solve their small problems without having to ask on Scripting Discussion.

Great job by the way.


Respuesta: Warning and error list [WITH FIX] - [Nikk] - 21.01.2012

Good job, but is not a very completed list, Great job anyway


Re: Warning and error list [WITH FIX] - [HK]Ryder[AN] - 22.01.2012

Nice tutorial.
useful for beginners.


Re: Warning and error list [WITH FIX] - RichyB - 28.01.2012

Okay how would I fix warning 235: public function lacks forward declaration (symbol "OnPlayerShootPlayer")
?


Re: Warning and error list [WITH FIX] - Snowman12 - 29.01.2012

one thing, when fixing loose indentation you can just simply:
Code:
#pragma tabsize 0 // FTW
@RichyB
Code:
forward CallbackName(paramsforthecallback);



Re: Warning and error list [WITH FIX] - Y_Less - 29.01.2012

Quote:
Originally Posted by Snowman12
View Post
one thing, when fixing loose indentation you can just simply:
Code:
#pragma tabsize 0 // FTW
NO! That is not a fix! That is simply ignoring an error which can provide vital insight in to possible bug locations. If you are going to tell people to do that, then tell them what it is - ignoring the problem, not fixing it!


Re: Warning and error list [WITH FIX] - FireCat - 29.01.2012

Quote:
Originally Posted by Y_Less
View Post
NO! That is not a fix! That is simply ignoring an error which can provide vital insight in to possible bug locations. If you are going to tell people to do that, then tell them what it is - ignoring the problem, not fixing it!
Exactly, I never used that, because I heard it's just something to escape your problems! (:


Re: Warning and error list [WITH FIX] - fahlevy - 06.09.2014

yes .


Re: Warning and error list [WITH FIX] - fahlevy - 06.09.2014

Quote:
Originally Posted by dusk
View Post
Did you include foreach in your code?
yeah, i add include foreach in my code,but it doesn't work??


Re: Warning and error list [WITH FIX] - dusk - 06.09.2014

Quote:
Originally Posted by fahlevy
View Post
yeah, i add include foreach in my code,but it doesn't work??
Try this syntax:
Code:
foreach (Player, i);



Re: Warning and error list [WITH FIX] - fahlevy - 06.09.2014

Quote:
Originally Posted by dusk
View Post
Try this syntax:
Code:
foreach (Player, i);
can't?? any suggest?

Code:
D:\FahLevY\PROJECT SERVER GUE !!!\Server Jadi!\Wargaming\gamemodes\War_.pwn(1579) : error 017: undefined symbol "foreach"
D:\FahLevY\PROJECT SERVER GUE !!!\Server Jadi!\Wargaming\gamemodes\War_.pwn(1579) : error 029: invalid expression, assumed zero
D:\FahLevY\PROJECT SERVER GUE !!!\Server Jadi!\Wargaming\gamemodes\War_.pwn(1579) : error 017: undefined symbol "i"
D:\FahLevY\PROJECT SERVER GUE !!!\Server Jadi!\Wargaming\gamemodes\War_.pwn(1579) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: Warning and error list [WITH FIX] - Y_Less - 06.09.2014

1) Don't use the comma syntax.

2) Why do you have a semi-colon on the line?


Re: Warning and error list [WITH FIX] - fahlevy - 07.09.2014

Quote:
Originally Posted by Y_Less
View Post
1) Don't use the comma syntax.

2) Why do you have a semi-colon on the line?
So wht im to do for that??


Re: Warning and error list [WITH FIX] - Crocker7 - 07.09.2014

It could have been better . Anyway , nice work


Re: Warning and error list [WITH FIX] - dusk - 07.09.2014

Quote:
Originally Posted by Y_Less
View Post
1) Don't use the comma syntax.

2) Why do you have a semi-colon on the line?
1. Why not? Is it deprecated?

2. Whoops.


Re: Warning and error list [WITH FIX] - Y_Less - 07.09.2014

Yes, very much so, but there is no way to use pragma deprecation on it. If I ever release a new version it will be gone - there are a few new features I'd like to add that are held back by having to support that old syntax.


Re: Warning and error list [WITH FIX] - Roxxas - 09.03.2015

Thank You !