please help
#1

pawn Код:
if(IsPlayerConnected(playerid) && !AccInfo[playerid][Level] >= 1 || !AccInfo[playerid][pVip] > 2){
Код:
C:\DOCUME~1\Prabhat\Desktop\LuxAdmin.pwn(12281) : warning 213: tag mismatch
C:\DOCUME~1\Prabhat\Desktop\LuxAdmin.pwn(12281) : warning 213: tag mismatch
Can you help in removing warnings
Reply
#2

pawn Код:
!AccInfo[playerid][Level] >= 1 || !AccInfo[playerid][pVip] > 2
Remove the '!'s.
Reply
#3

pawn Код:
if(IsPlayerConnected(playerid)
pawn Код:
if(IsPlayerConnected(playerid))
Reply
#4

Actully I m using this :
pawn Код:
forward OnPlayerUpdate(playerid);
public OnPlayerUpdate(playerid){
    new name[MAX_PLAYER_NAME];
    new string[128];
    if(IsPlayerConnected(playerid) && !AccInfo[playerid][Level] >= 1 || !AccInfo[playerid][pVip] > 0){
            GetPlayerName(playerid,name, sizeof(name));
            if(GetPlayerWeapon(playerid) == 36 ){
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Weapon Hack",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }else if(GetPlayerWeapon(playerid) == 37 ){
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Flamethrower",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }else if(GetPlayerWeapon(playerid) == 38 ){
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: MiniGun",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }
            if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) {
                format(string, sizeof(string), "proking Bot: %s (id: %d) has ben kicked. Reason: Jetpack",name,playerid);
                SendClientMessageToAll(COLOR_RUDY,string);
                Kick(playerid);
            }
        }
    return 1;
}
So if I remove NOT '!' So I will work only for admins and vip which I not wants
Reply
#5

Just remove the '!' in both arguments, and change the angle brackets (<, >) in the opposite direction.
Reply
#6

Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)