[AJUDA] erro iniciante
#1

pawn Код:
if (strcmp("/armas1", cmdtext, true, 10) == 0)
    {
        new nome[24];
        GetPlayerName(playerid, nome, sizeof(nome));
        SendClientMessageToAll(GREEN, "O jogador %s pegou o kit 1 de armas", nome);

        return 1;
    }
Qualй o problema?
Reply
#2

pawn Код:
if (strcmp("/armas1", cmdtext, true, 10) == 0)
    {
        new nome[24];
        GetPlayerName(playerid, nome, sizeof(nome));
        format(string,sizeof(string),"o jogador %s pegiu o kit de armas",nome);
        SendClientMessageToAll(GREEN,string);

        return 1;
    }
Reply
#3

Quote:
Originally Posted by Coreia
Посмотреть сообщение
pawn Код:
if (strcmp("/armas1", cmdtext, true, 10) == 0)
    {
        new nome[24];
        GetPlayerName(playerid, nome, sizeof(nome));
        format(string,sizeof(string),"o jogador %s pegiu o kit de armas",nome);
        SendClientMessageToAll(GREEN,string);

        return 1;
    }
Digito o comando e o servidor fecha.
Reply
#4

pawn Код:
if(!strcmp("/armas1", cmdtext, true))
    {
        new nome[24], stri[100];
        GetPlayerName(playerid, nome, sizeof(nome));
        format(stri, sizeof(stri),"O jogador %s pegou o kit 1 de armas", nome);
        SendClientMessageToAll(-1, stri);
        return 1;
    }
=)
Reply
#5

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
pawn Код:
if(!strcmp("/armas1", cmdtext, true))
    {
        new nome[24], stri[100];
        GetPlayerName(playerid, nome, sizeof(nome));
        format(stri, sizeof(stri),"O jogador %s pegou o kit 1 de armas", nome);
        SendClientMessageToAll(-1, stri);
        return 1;
    }
=)
Vlw (:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)