SA-MP Forums Archive
Added a filter script? - 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: Added a filter script? (/showthread.php?tid=431824)



Added a filter script? - Airin - 20.04.2013

Ok so i added a filterscript and my server won't connect idk what to do!

http://forum.sa-mp.com/showthread.ph...ght=dealership


Re: Added a filter script? - Mattakil - 20.04.2013

define "Wont connect"


Re: Added a filter script? - Airin - 20.04.2013

http://prntscr.com/11byxh <<<<<<<<<<


Re: Added a filter script? - Mattakil - 20.04.2013

When you click on the server in the samp launcher, it shows the stats of it right? IE Ping, Players etc.


Re: Added a filter script? - Airin - 20.04.2013

I fixed it but im adding the code to .pwn from the http://forum.sa-mp.com/showthread.ph...ght=dealership which is public GetPlayerAVSAdmin(playerid)
{
return PlayerInfo[playerid][pAdmin];
}

and the error i get is
C:\Users\hayden\Desktop\LoF.pwn(4006) : warning 235: public function lacks forward declaration (symbol "GetPlayerAVSAdmin")
C:\Users\hayden\Desktop\LoF.pwn(400 : error 017: undefined symbol "PlayerInfo"
C:\Users\hayden\Desktop\LoF.pwn(400 : warning 215: expression has no effect
C:\Users\hayden\Desktop\LoF.pwn(400 : error 001: expected token: ";", but found "]"
C:\Users\hayden\Desktop\LoF.pwn(400 : error 029: invalid expression, assumed zero
C:\Users\hayden\Desktop\LoF.pwn(400 : fatal error 107: too many error messages on one line


Re: Added a filter script? - Airin - 20.04.2013

Can anyone help me?


Re: Added a filter script? - Giroud12 - 20.04.2013

Can u show the error lline?


Re: Added a filter script? - Airin - 20.04.2013

first i did not know where to put
public GetPlayerAVSAdmin(playerid)
{
return PlayerInfo[playerid][pAdmin];
}
so i just picked a place and it was here http://prntscr.com/11c39e


Re: Added a filter script? - Giroud12 - 20.04.2013

public GetPlayerAVSAdmin(playerid) remove (playerid)


Re: Added a filter script? - Airin - 20.04.2013

C:\Users\hayden\Desktop\LoF.pwn(4007) : error 001: expected token: ";", but found "{"
C:\Users\hayden\Desktop\LoF.pwn(400 : error 010: invalid function or declaration
C:\Users\hayden\Desktop\LoF.pwn(20846) : warning 203: symbol is never used: "GetPlayerAVSAdmin"