30.05.2011, 16:53
So, I recenlty upgraded from gAdmin to 0Admin, now, I linked gAdmin to JunkBuster without any problems.
This is what I used for gAdmin:
And it worked fine.
But its NOT working for 0Admin.
I got this in the 0Admin post.
And this in the JunkBuster readme:
And made this and placed it in the 0Admin FilterScript:
Got this:
So I added this to the 0Admin script
got this:
Then I tried making a filterscript for it:
And then got this:
Guys please help! It worked fine with gAdmin, so why not with 0Admin! Someone please help. It is driving me nuts! I gave you as much detail as I can give. And I would hate to downgrade back to gAdmin becuase its so buggy and 0Admin is the best admin script out there.
This is what I used for gAdmin:
pawn Код:
public IsPlayerAdminCall(playerid)
{
if(PlayerInfo[playerid][AdminLevel] >= 2) //I would like anyone over admin level 2 to use it
return 1;
else
return 0;
}
But its NOT working for 0Admin.
I got this in the 0Admin post.
pawn Код:
if(!strcmp(cmdtext, "/command"))
{
if(GetPlayerLevel(playerid) > 3)
{
//Admin level 3 code here
}else return SendClientMessage(playerid, ~1, "You are not allowed to use this command!");
return 1;
}
Код:
Step 4) You are using a default admin system with for example levels? Not only RCON? You can link this admin system with JunkBuster. JunkBuster can't recognize your adminsystem so you must add a function. Function (This is only an EXAMPLE!): public IsPlayerAdminCall(playerid) { if(PlayerInfo[playerid][pAdmin] >= 1) return 1; else return 0; }
pawn Код:
public IsPlayerAdminCall(playerid)
{
if(GetPlayerLevel(playerid) > 2)//Anyone above level 2 Can use it
return 1;
else
return 0;
}
Код:
C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(382) : warning 201: redefinition of constant/macro (symbol "Public:%0(%1)") C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10946) : error 017: undefined symbol "GetPlayerLevel" C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10946) : error 029: invalid expression, assumed zero C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10946 -- 10947) : warning 215: expression has no effect C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10947) : error 001: expected token: ";", but found "return" C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10947) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
#include 0Admin_F
Код:
C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(383) : warning 201: redefinition of constant/macro (symbol "Public:%0(%1)") C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10947) : error 029: invalid expression, assumed zero C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10947 -- 10948) : warning 215: expression has no effect C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10948) : error 001: expected token: ";", but found "return" C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10948) : warning 217: loose indentation C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10949) : warning 225: unreachable code C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10949) : warning 217: loose indentation C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10949) : error 029: invalid expression, assumed zero C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10949 -- 10950) : warning 215: expression has no effect C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10950) : error 001: expected token: ";", but found "return" C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10950) : warning 217: loose indentation C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\0Admin.pwn(10952) : warning 203: symbol is never used: "__Name" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
#include <a_samp>
#include <JunkBuster>
#include 0Admin_F
public IsPlayerAdminCall(playerid)
{
if(GetPlayerLevel(playerid) > 3))//Anyone above level 2 Can use it
return 1;
else
return 0;
}
Код:
C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(7) : error 029: invalid expression, assumed zero C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(7 -- 8) : warning 215: expression has no effect C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(8) : error 001: expected token: ";", but found "return" C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(8) : warning 217: loose indentation C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(9) : warning 225: unreachable code C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(9) : warning 217: loose indentation C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(9) : error 029: invalid expression, assumed zero C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(9 -- 10) : warning 215: expression has no effect C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(10) : error 001: expected token: ";", but found "return" C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(10) : warning 217: loose indentation C:\Documents and Settings\Ed\Desktop\SAMP Virtual Pilots\filterscripts\Junk0Admin.pwn(12) : warning 203: symbol is never used: "__Name" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.