[Tutorial] How to create an Admin Filterscript w/ commands !
#21

I searched it too here dont have it!

WIKIPEDIA TUTORIAL - TOO OLD
SA-MP FORUM TUTORIAL - TOO SHIT DO USE
WHAT EVER MAN~!
Reply
#22

Code:
C:\Documents and Settings\PC\My Documents\Untitled.pwn(207) : error 010: invalid function or declaration
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : error 017: undefined symbol "gPlayerInfo"
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : warning 215: expression has no effect
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : error 029: invalid expression, assumed zero
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : fatal error 107: too many error messages on one line
You've got some errors, you should check your Filterscript again.
Reply
#23

Quote:
Originally Posted by Shooter3
View Post
Code:
C:\Documents and Settings\PC\My Documents\Untitled.pwn(207) : error 010: invalid function or declaration
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : error 017: undefined symbol "gPlayerInfo"
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : warning 215: expression has no effect
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : error 029: invalid expression, assumed zero
C:\Documents and Settings\PC\My Documents\Untitled.pwn(265) : fatal error 107: too many error messages on one line
You've got some errors, you should check your Filterscript again.
download the pastebin filterscript and take out all the unneccessary colors.. No errors nor problems
Reply
#24

It crashes my server ... .
Reply
#25

why i get this errors?
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(202) : error 010: invalid function or declaration
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : error 017: undefined symbol "gPlayerInfo"
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : warning 215: expression has no effect
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : error 001: expected token: ";", but found "]"
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : error 029: invalid expression, assumed zero
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : fatal error 107: too many error messages on one line

Please tell me how to fix it
Reply
#26

Quote:
Originally Posted by red_dragen
View Post
why i get this errors?
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(202) : error 010: invalid function or declaration
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : error 017: undefined symbol "gPlayerInfo"
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : warning 215: expression has no effect
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : error 001: expected token: ";", but found "]"
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : error 029: invalid expression, assumed zero
C:\Users\Dion\Desktop\SAMP\gamemodes\myserver(1).p wn(257) : fatal error 107: too many error messages on one line

Please tell me how to fix it
It would help if you would actually POST line 257...
Reply
#27

Quote:
Originally Posted by Wesley221
View Post
Ah i know whats wrong

I tried the pastebin one, and there were 2 errors
Just had to add some tabs, and then it was fixed; might be the problem on my last try aswell

Thanks
Yes, indentation = space.
so if 'loose indentation' = loose space but since the compiler can't tell you exactly everything to correct, you need to work it out..
Reply
#28

Quote:
Originally Posted by Wesley221
View Post
Nice tutorial

I'm just getting 3 warnings while compiling:

Code:
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\AdminSystem.pwn(63) : warning 217: loose indentation
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\AdminSystem.pwn(158) : warning 217: loose indentation
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\AdminSystem.pwn(309) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
pawn Code:
if(!fexist(CommandFile)) //<-- line 63
strcat(gPlayerInfo[playerid][PLAYER_IP], dini_Get(file, "Ip")); // <-- line 158
SendClientMessage(playerid, COLOR_ORANGE, string); // <-- line 309
add this on top of the script
#pragma tabsize 0
Reply
#29

Excellent Tutorial!

Now about the warnings

Quote:
Originally Posted by Wesley221
View Post
Nice tutorial

I'm just getting 3 warnings while compiling:

Code:
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\AdminSystem.pwn(63) : warning 217: loose indentation
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\AdminSystem.pwn(158) : warning 217: loose indentation
C:\Users\wesley.PC_van_Kelsey\Desktop\SAMP_Flight\filterscripts\AdminSystem.pwn(309) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
pawn Code:
if(!fexist(CommandFile)) //<-- line 63
strcat(gPlayerInfo[playerid][PLAYER_IP], dini_Get(file, "Ip")); // <-- line 158
SendClientMessage(playerid, COLOR_ORANGE, string); // <-- line 309
Its simply because you must do 4 spaces after the '{'.
Reply
#30

under this line #include <a_samp> type
#include pragma tabsize 0
Reply
#31

This is a very well done tutorial on how to make admin commands [ FILTERSCRIPT ] to be honest i'm new at Pawno scripting i wish i could do my best to learn well to script and share my scripts will you all.

with respect @Mobtiesgang[SA] a.k.a [S]ead [A]jdar - [S]an [A]ndreas peace.
Reply
#32

Quote:
Originally Posted by Mobtiesgangsa
View Post
This is a very well done tutorial on how to make admin commands [ FILTERSCRIPT ] to be honest i'm new at Pawno scripting i wish i could do my best to learn well to script and share my scripts will you all.

with respect @Mobtiesgang[SA] a.k.a [S]ead [A]jdar - [S]an [A]ndreas peace.
Achieved [Bumped an old thread!] ... Also, Dini sucks .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)