Warning 271 Pawno
#1

I want a pwn. a amx. file that works but then gives pawno 2 Warnings
This pawno says: "C: \ Users \ (my name) \ Documents \ samp Servers \ Test Server \ filter scripts \ Nummerborden.pwn (6): warning 217: loose indentation
C: \ Users \ (my name \ Documents \ samp Servers \ Test Server \ filter scripts \ Nummerborden.pwn (37): warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase '


Warnings 2.

Can anyone help me?
Reply
#2

Loose indentation is nothing serious, just tidy up your code abit.
Reply
#3

so what?

u will get .amx if u have warning (no errors)
Reply
#4

it is warning that your indent isn't proper. Look at lines 6 and 37 in your script.
Reply
#5

Good indentation.

Код:
if(condition)
{
    action();
    result();
}
Bad indentation.

Код:
if(condition)
{
    action();
  result();
}
Taken from wiki.
Reply
#6

Yeah I got it but I get an error message me my server
see picture below

Unable to load filter script '(script name)'.amx
Reply
#7

Quote:
Originally Posted by bennojulian
Посмотреть сообщение
Yeah I got it but I get an error message me my server
see picture below

Unable to load filter script '(script name)'.amx
Have you added the script to your server cfg ?
Put it in the correct folder ?
Reply
#8

Yeah i have added
Reply
#9

The "Gamemode" line in the server.cfg is capital-sensitive I believe, check if you're gamemode is with or without a capslock and if it's the same in the server.cfg
Reply
#10

If it's a gamemode you can't load, you must add
pawn Код:
main( ) { }
in your code, if it's a filterscript, meaning you have error in it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)