20.12.2015, 16:09
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(str, sizeof(str), "[KICK] Admin %s (id:%d) kicked %s (id:%d) from the server.Reason: [1 of 3 kick] %s.", adminname, playerid, victimname, kid, reason);
SendClientMessageToAll(COLOR_RED, str);
//if(PlayerInfo[playerid][pKick] +=1
GameTextForPlayer(id, "~r~You have been kicked!", 5000, 4);
Kick(id);
return 1;
}
PHP код:
if(PlayerInfo[playerid][pKick] ==1)
{
format(str, sizeof(str), "[KICK] Admin %s (id:%d) kicked %s (id:%d) from the server.Reason: [1 of 3 kick] %s.", adminname, playerid, victimname, kid, reason);
SendClientMessageToAll(COLOR_RED, str);
PlayerInfo[playerid][pKick] =1;
GameTextForPlayer(id, "~r~You have been kicked!", 5000, 4);
Kick(id);
return 1;
}