Erro comando /kick
#1

Rapaziada eu coloquei esse comando /kick, mais quando vou testa ele nгo kika '-'

if(strcmp(cmdtext,"/kick",true) == 0)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pCbf] >= 1)
SendClientMessage(playerid,0xFFFFFFAA,"Use /Kick [ID/Nome][Motivo]");
return 1;
}
new kickado = strval(tmp);
new kickadoname[MAX_PLAYER_NAME];
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[256];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
if(!strlen(result))
{
SendClientMessage(playerid,BRANCO,"Use /Kick[ID][Motivo]");
return 1;
}
GetPlayerName(kickado,kickadoname,sizeof(kickadona me));
format(string,sizeof(string),"%s Foi Kickado Pelo %s %s, Motivo: %s",kickadoname,pNome(playerid),result);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}
Reply


Messages In This Thread
Erro comando /kick - by ViniciusTUF - 10.04.2016, 23:44
Re: Erro comando /kick - by ViniciusTUF - 10.04.2016, 23:47
Re: Erro comando /kick - by Pxndx - 11.04.2016, 19:02
Re: Erro comando /kick - by ViniciusTUF - 11.04.2016, 21:15
Re: Erro comando /kick - by ViniciusTUF - 11.04.2016, 21:21
Re: Erro comando /kick - by Pxndx - 11.04.2016, 22:31
Re: Erro comando /kick - by ViniciusTUF - 11.04.2016, 22:34
Re: Erro comando /kick - by Pxndx - 11.04.2016, 22:37
Re: Erro comando /kick - by ViniciusTUF - 11.04.2016, 22:50
Re: Erro comando /kick - by Pxndx - 11.04.2016, 23:06

Forum Jump:


Users browsing this thread: 4 Guest(s)