[Ajuda] Erro sscanf
#4

pawn Код:
CMD:cv(playerid, params[])
{
    new nome[MAX_PLAYER_NAME], string[128], niveladm[22];
    if(sscanf(params, "s[128]", params[0]))
        return SendClientMessage(playerid, COLOR_GREY, "Use : /cv [texto].");
    GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
    switch(PlayerInfo[playerid][pAdmin])
    {
        case 1: niveladm = "Moderador em Teste";
        case 2: niveladm = "Moderador";
        case 3: niveladm = "Fundador";
    }
    format(string, sizeof(string), "{FF0000}[%s] {FFFFFF}%s : {066363}%s", niveladm, nome, params[0]);
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}
Reply


Messages In This Thread
Erro sscanf - by Tugamars - 27.12.2013, 23:35
Re: Erro sscanf - by unamed - 27.12.2013, 23:36
Re: Erro sscanf - by Tugamars - 27.12.2013, 23:39
Re: Erro sscanf - by PT - 27.12.2013, 23:44
Re: Erro sscanf - by Juniiro3 - 28.12.2013, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)