/Kick Command.
#1

Hello!
I Have 1 Problem!
HERE:

CMD:kick(playerid, params[])
{
if(Info[playerid][Admin] >= 3)
{
new PID;
new reason[64];
new str[128];
new Playername[MAX_PLAYER_NAME], Adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid, Adminname, sizeof(Adminname));
GetPlayerName(PID, Playername, sizeof(Playername));
if(sscanf(params, "us[64]", PID,reason)) return SendClientMessage(playerid, Valge, "[KASUTUS] : /kick [Mдngija ID] [Pхhjus]");
if(!IsPlayerConnected(PID))
return SendClientMessage(playerid, Punane, "Mдngijat pole serveris!");
format(str, sizeof(str), "[ADMIN] : %s Visati serverist vдlja. Admini %s poolt. || Pхhjus: %s ||", Playername, Adminname, reason);
SendClientMessageToAll(Orants, str);
Kick(PID);
}
else
{
SendClientMessage(playerid, Punane, "[ADMIN] : Sul pole хigusi!");
}
return 1;
}

And i get 1 warning:

HERE:

C:\Documents and Settings\X ActionSilent\Desktop\Samp Server\gamemodes\XActionSilent.pwn(157) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply


Messages In This Thread
/Kick Command. - by KolleMan - 09.11.2012, 13:54
Re: /Kick Command. - by ashwinsekhari - 09.11.2012, 13:58
Re: /Kick Command. - by park4bmx - 09.11.2012, 13:59
Re: /Kick Command. - by KolleMan - 09.11.2012, 13:59
Re: /Kick Command. - by ashwinsekhari - 09.11.2012, 14:00
Re: /Kick Command. - by Astralis - 09.11.2012, 14:00
Re: /Kick Command. - by KolleMan - 09.11.2012, 14:13
Re: /Kick Command. - by KolleMan - 09.11.2012, 14:19
Re: /Kick Command. - by park4bmx - 09.11.2012, 15:07
Re: /Kick Command. - by xMCx - 09.11.2012, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)