04.01.2011, 15:05
pawn Код:
if(strcmp(cmd, "/kick", true) == 0)
{
new id[256], texto[256];
id = strtok(cmdtext, idx);
if (strlen(id) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /kick [playerid]");
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++;
}
result[idx - offset] = EOS;
if (strlen(result) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Use: /kick [playerid]");
Kick(strval(id) );
GetPlayerName(playerid, nome, sizeof(nome) );
GetPlayerName(id, outro, sizeof(outro) );//Aqui й a linha 136.
format(texto, sizeof texto, "O administrador: %s kickou o jogador: %s pelo motivo de: %s", nome, outro, result);
SendClientMessageToAll(0xFFFFFFFF, texto);
return 1;
}
pawn Код:
(136) : error 035: argument type mismatch (argument 1)