[Help]Pawn Error
#1

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
Reply
#2

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

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

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

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
Reply
#6

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
Reply
#7

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
Reply
#8

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?
Reply
#9

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...
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)