SA-MP Forums Archive
[Help]Pawn Error - 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]Pawn Error (/showthread.php?tid=566918)



[Help]Pawn Error - BigGreen - 09.03.2015

Hello im kinda new to this thing so bare with me i am trying to change a name of an RP Script i downloaded but i keep getting this error anyone know how to fix this


http://i.imgur.com/tohRjPS.jpg


Re: [Help]Pawn Error - Karan007 - 09.03.2015

You must have the zone.inc to include it in your gamemode.


Re: [Help]Pawn Error - X337 - 09.03.2015

You must put zones.inc into pawno -> include directory.


Re: [Help]Pawn Error - BigGreen - 09.03.2015

Quote:
Originally Posted by bondowocopz
Посмотреть сообщение
You must put zones.inc into pawno -> include directory.
I did but i just keep getting the same thing


AW: Re: [Help]Pawn Error - Kaliber - 09.03.2015

Quote:
Originally Posted by BigGreen
Посмотреть сообщение
I did but i just keep getting the same thing
Go in the folder pawno -> open pawno.exe

then click on the folder (in the left/top) and open your script and then compile it

Maybe you have the wrong Pawno opened


Re: AW: Re: [Help]Pawn Error - BigGreen - 09.03.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Go in the folder pawno -> open pawno.exe

then click on the folder (in the left/top) and open your script and then compile it

Maybe you have the wrong Pawno opened
Okay i got rid of the first error by coppying the whole script and paste it in a new pawn file but when i compiled it

it gives me warning like these


http://i.imgur.com/9pMwpNF.jpg


AW: Re: AW: Re: [Help]Pawn Error - Kaliber - 09.03.2015

Quote:
Originally Posted by BigGreen
Посмотреть сообщение
it gives me warning like these
Well, actually you can ignore them

And delete the declaration of the var "type".

and post the line of the last warning


Re: [Help]Pawn Error - CalvinC - 09.03.2015

The first warning, show us the code there, use CTRL+G to find it.
Second, there's a variable called "type", but it's never used, so delete it, although you can ignore this warning.
Third, the loose indentation warnings, that means the spacing/indentation is incorrect, there's multiple tutorials how to fix this:
http://en.wikipedia.org/wiki/Indent_style
https://sampforum.blast.hk/showthread.php?tid=256961
https://sampforum.blast.hk/showthread.php?tid=564956
Although this warning can also be ignored.

Kaliber.
Quote:
Originally Posted by Forum Rules
Banned Code - There is a certain "#pragma" that can be used to hide significant warnings and produce unreadable code - DO NOT advocate its use if you know what it is; it is TERRIBLE practice and we want to get rid of it.
I don't see where it's logical to give up, and promote the use of banned codes just because you have 1-2 lines of loose indentation, you call that help?


AW: Re: [Help]Pawn Error - Kaliber - 09.03.2015

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
I don't see where it's logical to give up, and promote the use of banned codes just because you have 1-2 lines of loose indentation, you call that help?
Oh please -.-

Yes it's so horrible to use it, it destroys everything...not

You know...90% of all GFs (and that is actually a GF!) uses this directive

PS: But yeah...its bad, but there are much worser things inside that script...


Respuesta: [Help]Pawn Error - JuanStone - 09.03.2015

Who would think say that fit '#pragma tabsize' will fix the problem, it is so bad, this will hide the only warnings, apart from only has two lines poorly organized.