SA-MP Forums Archive
[Tutorial] How to create an Admin Filterscript w/ commands ! - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to create an Admin Filterscript w/ commands ! (/showthread.php?tid=253481)

Pages: 1 2


Re: How to create an Admin Filterscript w/ commands ! - James Coral - 05.01.2012

I searched it too here dont have it!

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


Re: How to create an Admin Filterscript w/ commands ! - Shooter3 - 15.01.2012

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.


Re: How to create an Admin Filterscript w/ commands ! - Jagofr - 21.02.2012

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


Re: How to create an Admin Filterscript w/ commands ! - x96664 - 19.05.2012

It crashes my server ... .


Re: How to create an Admin Filterscript w/ commands ! - red_dragen - 15.06.2012

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


Re: How to create an Admin Filterscript w/ commands ! - alpha500delta - 15.06.2012

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


Re: How to create an Admin Filterscript w/ commands ! - Karol56 - 07.07.2012

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


Re: How to create an Admin Filterscript w/ commands ! - urbaNRoots - 31.07.2012

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


Re: How to create an Admin Filterscript w/ commands ! - EsperZ - 04.04.2015

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 '{'.


Re: How to create an Admin Filterscript w/ commands ! - Digii - 26.01.2016

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


Re: How to create an Admin Filterscript w/ commands ! - Mobtiesgangsa - 23.05.2017

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.


Re: How to create an Admin Filterscript w/ commands ! - YouHack - 26.05.2017

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 .