09.11.2012, 13:54
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.
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.