[Ajuda] Convertendo
#3

Quote:
Originally Posted by PT
Посмотреть сообщение
aqui tem em strcmp

pawn Код:
if(strcmp("/infovip", cmdtext, true, 10))
{
    if(IsPlayerAdmin(playerid))
    {
        new id, reason[32], string[128], string1[128], nomeadmin[MAX_PLAYER_NAME], nomeplayer[MAX_PLAYER_NAME];

        if(sscanf(cmdtext, "s[10]us", cmd, id, reason)) return SendClientMessage(playerid, INFO,"|MCAdmin|:Use: /Aviso [ID] [Motivo]");
        GetPlayerName(playerid, nomeadmin, sizeof(nomeadmin));
        GetPlayerName(id, nomeplayer, sizeof(nomeplayer));
        if(avisar[id] == 0)
        {
            format(string, sizeof(string), "|MCAdmin|Vocк Deu Um Aviso Ao Jogador %s. ( 1/3 )", nomeplayer);
            format(string1, sizeof(string1), "|MCAdmin|:Vocк Levou Um Aviso Do Administrador %s.Motivo: %s. ( 1/3 )", nomeadmin, reason);
            SendClientMessage(playerid, SUCESSO, string);
            SendClientMessage(id, INFO, string1);
            Avisos[id] = 1;
        }
        else if(Avisos[id] == 1)
        {
            format(string, sizeof(string), "|MCAdmin|:Vocк Deu Um Aviso ao jogador %s. ( 2/3 )", nomeplayer);
            format(string1, sizeof(string1), "|MCAdmin|:Vocк Levou Um Aviso Do Administrador %s.Motivo: %s. ( 2/3 )", nomeadmin, reason);
            SendClientMessage(playerid, SUCESSO, string);
            SendClientMessage(id, INFO, string1);
            Avisos[id] = 2;
        }
        else if(Avisos[id] == 2)
        {
            format(string, sizeof(string), "|MCAdmin|:Vocк Deu Um Aviso Ao jogador %s. ( 3/3 )", nomeplayer);
            format(string1, sizeof(string1), "|MCAdmin|:Vocк levou Um Aviso Do Administrador %s.Motivo: %s. ( 3/3 )", nomeadmin, reason);
            SendClientMessage(playerid, SUCESSO, string);
            SendClientMessage(id, INFO, string1);
            SendClientMessage(id, INFO, "|MCAdmin|:Vocк Recebeu 3 Avisos E Foi Kikado,Nao Volte A Fazer Coisas Erradas,leia As regras /regras!");
            SetTimer("KickTimer", 50, false);
        }

        printf("|MCLog|:O administrador %s deu um Aviso ao jogador %s.Motivo: %s", nomeadmin, nomeplayer, reason);
    }
    else
    {
        SendClientMessage(playerid, FAIL, "|MCErro|:Vocк Nгo Tem Permissгo Para Usar Esse Comando");
    }
    return 1;
}
tenta ae
C:\Users\Douglas Cabral\Desktop\Servidores\Servidor Samp 0.3x\gamemodes\Brasil Morte Certa\Brasil Morte Certa\filterscripts\Admin15.pwn(1494) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Douglas Cabral\Desktop\Servidores\Servidor Samp 0.3x\gamemodes\Brasil Morte Certa\Brasil Morte Certa\filterscripts\Admin15.pwn(1496) : error 017: undefined symbol "INFO"
C:\Users\Douglas Cabral\Desktop\Servidores\Servidor Samp 0.3x\gamemodes\Brasil Morte Certa\Brasil Morte Certa\filterscripts\Admin15.pwn(1499) : error 017: undefined symbol "avisar"
C:\Users\Douglas Cabral\Desktop\Servidores\Servidor Samp 0.3x\gamemodes\Brasil Morte Certa\Brasil Morte Certa\filterscripts\Admin15.pwn(1499) : warning 215: expression has no effect
C:\Users\Douglas Cabral\Desktop\Servidores\Servidor Samp 0.3x\gamemodes\Brasil Morte Certa\Brasil Morte Certa\filterscripts\Admin15.pwn(1499) : error 001: expected token: ";", but found "]"
C:\Users\Douglas Cabral\Desktop\Servidores\Servidor Samp 0.3x\gamemodes\Brasil Morte Certa\Brasil Morte Certa\filterscripts\Admin15.pwn(1499) : error 029: invalid expression, assumed zero
C:\Users\Douglas Cabral\Desktop\Servidores\Servidor Samp 0.3x\gamemodes\Brasil Morte Certa\Brasil Morte Certa\filterscripts\Admin15.pwn(1499) : fatal error 107: too many error messages on one line
Reply


Messages In This Thread
Convertendo - by Douglas651 - 16.09.2013, 18:22
Re: Convertendo - by PT - 16.09.2013, 18:39
Re: Convertendo - by Douglas651 - 16.09.2013, 18:43
Re: Convertendo - by Schocc - 16.09.2013, 18:46
Re: Convertendo - by Douglas651 - 16.09.2013, 18:52
Re: Convertendo - by PT - 16.09.2013, 18:53
Re: Convertendo - by Douglas651 - 16.09.2013, 18:58
Re: Convertendo - by Douglas651 - 16.09.2013, 19:18
Re: Convertendo - by PT - 16.09.2013, 19:22
Re: Convertendo - by Douglas651 - 16.09.2013, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)