SA-MP Forums Archive
[HELP]i got 57 warning errors :/ in my gamemode when compile!! - 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)
+--- Thread: [HELP]i got 57 warning errors :/ in my gamemode when compile!! (/showthread.php?tid=314541)



[HELP]i got 57 warning errors :/ in my gamemode when compile!! - MAVERICKS - 30.01.2012

Hi guyz i got 57 warning erros in my GM when i compile!Please help me!!

pawn Код:
warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 204: symbol is assigned a value that is never used: "carid"
 warning 204: symbol is assigned a value that is never used: "tires"
 warning 203: symbol is never used: "lights"
 warning 203: symbol is never used: "doors"
 warning 203: symbol is never used: "panels"
 warning 204: symbol is assigned a value that is never used: "carid"
 warning 204: symbol is assigned a value that is never used: "tires"
 warning 203: symbol is never used: "lights"
 warning 203: symbol is never used: "doors"
 warning 203: symbol is never used: "panels"
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 217: loose indentation
 warning 204: symbol is assigned a value that is never used: "vehicle"
 warning 204: symbol is assigned a value that is never used: "rands"
 warning 217: loose indentation
 warning 217: loose indentation
 warning 204: symbol is assigned a value that is never used: "result"
 warning 203: symbol is never used: "PlayerDrunk"
 warning 203: symbol is never used: "iOrder"
 warning 204: symbol is assigned a value that is never used: "iTGB"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


57 Warnings.



Re: [HELP]i got 57 warning errors :/ in my gamemode when compile!! - MasterJoker - 30.01.2012

looks like you need to use this!

Warnings and Error List [WITH FIXED!]


Re: [HELP]i got 57 warning errors :/ in my gamemode when compile!! - MAVERICKS - 30.01.2012

Quote:
Originally Posted by MasterJoker
Посмотреть сообщение
looks like you need to use this!

Warnings and Error List [WITH FIXED!]
thanks!!btw when i did #pragma unused pararms it says "1error"


Re: [HELP]i got 57 warning errors :/ in my gamemode when compile!! - Konstantinos - 30.01.2012

For the indentation, some people use
pawn Код:
// At The Top
#pragma tabsize 0
not params.


Re: [HELP]i got 57 warning errors :/ in my gamemode when compile!! - Stigg - 30.01.2012

Quote:
Originally Posted by Dwane
Посмотреть сообщение
For the indentation, some people use
pawn Код:
// At The Top
#pragma tabsize 0
not params.
Which is bad practise, loose indentation warnings are easy to fix.

https://sampwiki.blast.hk/wiki/Errors_List

Or if lazy, try:

http://dracoblue.net/tidy/pawn/