Problema!
#1

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;
}
Vive dando este erro:

pawn Код:
(136) : error 035: argument type mismatch (argument 1)
Reply


Messages In This Thread
Problema! - by Domozinho - 04.01.2011, 15:05
Re: Problema! - by CyNiC - 04.01.2011, 15:56
Respuesta: Problema! - by ipsBruno - 04.01.2011, 16:12
Re: Problema! - by Domozinho - 04.01.2011, 16:37
Re: Problema! - by bugvip - 04.01.2011, 17:44
Re: Problema! - by Domozinho - 04.01.2011, 20:35
Re: Problema! - by -GooGle- - 04.01.2011, 20:40
Re: Problema! - by Domozinho - 04.01.2011, 21:27
Re: Problema! - by TiagoPS - 04.01.2011, 22:41
Respuesta: Problema! - by ipsBruno - 04.01.2011, 22:47

Forum Jump:


Users browsing this thread: 3 Guest(s)