[Ajuda] 6 error.
#4

FAIL \/ FIZ DOUBLE POST SEM QUERER D:

Quote:
Originally Posted by [NWD]Jim._.Carrey
Посмотреть сообщение
Mals a demora estou ocupado, posta a linha do erro manolo. . .

Edit: esquece vou ver o cуdigo denovo pera ai...
Tenta ae:
pawn Код:
CMD:vida(playerid, params[])
    {
        new string [128];
        if(!IsPlayerAdmin(playerid))
        {
            SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
            return 1;
        }
        if( sscanf( params, "ud", id, valor[0] ) )
        {
            SendClientMessage(playerid, COLOR_BLACK_GRAY, "[ERRO DE SINTAXE] /vida [id] [vida]");//
            return 1;
        }
        if( IsPlayerConnected(id) )
        {
            for( new allplayers = 0; allplayers < GetMaxPlayers(); allplayers++)
            {
                format(string, sizeof(string), "O Admnistrador %s setou a vida de %s para %d.", pNome(playerid), pNome(allplayers), valor[0]);
                SendClientMessageToAll(COLOR_WHITE, string);
                SetPlayerHealth(id, valor[0]);
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_BLACK_GRAY, "Jogador nгo conectado.");
            return 1;
        }
        return 1;
    }

    CMD:setscore(playerid, params[])
    {
        if( !IsPlayerAdmin(playerid) )
        {
            SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
            return 1;
        }
        if( sscanf(params, "ud", id, valor[0] ) )
        {
            SendClientMessage(playerid, COLOR_BLACK_GRAY, "[ERRO DE SINTAXE] /setscore [id] [score]");
            return 1;
        }
        if( IsPlayerConnected(id) )
        {
            format(string, sizeof(string), "O Admnistrador %s setou o score de %s para %d.", pNome(playerid), pNome(id), valor[0]);
            SendClientMessageToAll(COLOR_WHITE, string);
            SetPlayerScore(id, valor[0]);
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_BLACK_GRAY, "Jogador nгo conectado.");
            return 1;
        }
    }
Reply


Messages In This Thread
[Ajuda] 6 error. - by Jason_King - 02.10.2011, 21:17
Re : [Ajuda] 6 Erros. - by [NWD]Jim._.Carrey - 02.10.2011, 21:39
Re: [Ajuda] 6 Erros. - by Jason_King - 02.10.2011, 22:12
Re : [Ajuda] 6 Erros. - by [NWD]Jim._.Carrey - 02.10.2011, 22:48
Re: [Ajuda] 6 Erros. - by Jason_King - 03.10.2011, 00:18
Re: [Ajuda] 6 error. - by Jason` - 03.10.2011, 06:23
Re: [Ajuda] 6 error. - by Lуs - 03.10.2011, 06:29
Re: [Ajuda] 6 error. - by Jason_King - 03.10.2011, 16:35
Re: [Ajuda] 6 error. - by Hardware - 03.10.2011, 16:50
Re: [Ajuda] 6 error. - by Jason_King - 03.10.2011, 16:56

Forum Jump:


Users browsing this thread: 2 Guest(s)