#2

You are using an if stament without comming to a conclusion for it. You don't need an if statement here.
PHP код:
        if(PlayerInfo[playerid][pKick] ==1)
        {
            
format(strsizeof(str), "[KICK] Admin %s (id:%d) kicked %s (id:%d) from the server.Reason: [1 of 3 kick] %s."adminnameplayeridvictimnamekidreason);
            
SendClientMessageToAll(COLOR_REDstr);
        
//if(PlayerInfo[playerid][pKick] +=1
            
GameTextForPlayer(id"~r~You have been kicked!"50004);
            
Kick(id);
            return 
1;
        } 
PHP код:
        if(PlayerInfo[playerid][pKick] ==1)
        {
            
format(strsizeof(str), "[KICK] Admin %s (id:%d) kicked %s (id:%d) from the server.Reason: [1 of 3 kick] %s."adminnameplayeridvictimnamekidreason);
            
SendClientMessageToAll(COLOR_REDstr);
            
PlayerInfo[playerid][pKick] =1;
            
GameTextForPlayer(id"~r~You have been kicked!"50004);
            
Kick(id);
            return 
1;
        } 
Reply


Messages In This Thread
kick - by GeneralAref - 20.12.2015, 16:04
Re: kick - by vassilis - 20.12.2015, 16:09
Re: kick - by Sh4d0w2 - 20.12.2015, 16:10
Re: kick - by vassilis - 20.12.2015, 16:13
Re: kick - by Sh4d0w2 - 20.12.2015, 16:15
Re: kick - by GeneralAref - 20.12.2015, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)