Z_adminisland
#1

Hi i have problem
pawn Код:
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(671) : error 017: undefined symbol "playerid"
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(696) : error 017: undefined symbol "playerid"
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(696) : error 029: invalid expression, assumed zero
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(696) : warning 215: expression has no effect
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(696) : error 001: expected token: ";", but found ")"
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(696) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.



5 Errors.
pawn Код:
if(IsPlayerInRangeOfPoint(i,330,3883.1416,-1764.6523,120.3191)){
    671 line:if(IsPlayerLuxAdminLevel(playerid,1)){
          if(DEFENCE_MODE==1){ //autokill
            SetPlayerHealth(i,0);
            GameTextForPlayer(i,InIslandMessage2,4000,3);
            return 1;}
pawn Код:
if(IsPlayerInRangeOfPoint(i,10,2948.2056,-1958.5729,8.6734)){
696 line:     if(IsPlayerLuxAdminLevel(playerid,1)) && DEFENCE_MODE!=0){
          GameTextForPlayer(i,RestrictedAreaWarning,3000,3);}
        if((IsPlayerLuxAdminLevel(playerid, 1)) || (!IsPlayerLuxAdminLevel(playerid, 1) && DEFENCE_MODE==0)){
        if(IsPlayerLuxAdminLevel(playerid,1));
        if(GatesOpened==false){
            OpenGates();
            GatesOpened=true;
            SetTimer("CloseGatesTM",7000,0);}}}
Reply
#2

pawn Код:
671 line:if(IsPlayerLuxAdminLevel(i,1)){
pawn Код:
if(IsPlayerLuxAdminLevel(i,1) && DEFENCE_MODE!=0){
          GameTextForPlayer(i,RestrictedAreaWarning,3000,3);}
        if((IsPlayerLuxAdminLevel(i, 1)) || (!IsPlayerLuxAdminLevel(i, 1) && DEFENCE_MODE==0)){
        if(IsPlayerLuxAdminLevel(i,1));
        if(GatesOpened==false){
            OpenGates();
            GatesOpened=true;
            SetTimer("CloseGatesTM",7000,0);}}}
should work
Reply
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
pawn Код:
671 line:if(IsPlayerLuxAdminLevel(i,1)){
pawn Код:
if(IsPlayerLuxAdminLevel(i,1) && DEFENCE_MODE!=0){
          GameTextForPlayer(i,RestrictedAreaWarning,3000,3);}
        if((IsPlayerLuxAdminLevel(i, 1)) || (!IsPlayerLuxAdminLevel(i, 1) && DEFENCE_MODE==0)){
        if(IsPlayerLuxAdminLevel(i,1));
        if(GatesOpened==false){
            OpenGates();
            GatesOpened=true;
            SetTimer("CloseGatesTM",7000,0);}}}
should work
pawn Код:
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(695) : warning 217: loose indentation
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(699) : error 036: empty statement
C:\Users\Paulius\Desktop\samp03e_svr_R2_win32\filterscripts\Z_AdminIsland.pwn(705) : warning 217: loose indentation
I fixed There is you fool:
pawn Код:
if(IsPlayerLuxAdminLevel(i,1));
pawn Код:
if(IsPlayerLuxAdminLevel(i,1))
It need to be without ;
Reply
#4

Can you say why not working teleport
pawn Код:
if(strcmp(cmdtext, "/sf", true) == 0)
{
new string[128];
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
{
if(State!=PLAYER_STATE_DRIVER)
{
SetPlayerPos(playerid,-2004.0988,170.1234,27.5391);
}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{
SetVehiclePos(cartype,-2004.0988,170.1234,27.5391);
SetVehicleZAngle(cartype,91);
}
else
{
SetPlayerPos(playerid,-2004.0988,170.1234,27.5391);
}
GameTextForPlayer(playerid,"~r~San Fierro",2500,3);
}
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, 128,"[Leftax] %s Nusiteleportavo б San Fierro [/sf]", pName);
SendClientMessageToAll(COLOR_WHITE, string);
return 1;
}
Reply
#5

Who can help i get it Zadmin4v2 with Zisland. So when i drive to first gates it's open and write "You can't go over there!!!" But i am admin not rcon. But that text not be... I turned on defence system(Sam) so when I in second gates write "You entered in Admin Island! Die!" But that Text too not be.... Why i get that text and why for me working defence system but that not be.... ? Here i post that i edit for zadmin script http://pastebin.com/B1CNsQB2
PLEASE HELP
Reply
#6

Please..... Help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)