[Ajuda] Erro no comando '-'
#1

Boa noite.
Alguйm pode me dizer oque esta errado para dar esse erro?

pawn Код:
if(strcmp(cmd,"/geral",true)==0)
    {
        if(pInfo[playerid][AdminLevel1] >= 1)
        {
            if(UsouComando[playerid][3] == 1)
            {
                SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Aguarde 1 minuto para falar com todos novamente!");
                return 1;
            }
            new msg[128];
            strmid(tmp,cmdtext,9,strlen(cmdtext));
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, 0xFF0000AA,"/geral [texto]");
                return 1;
            }
            else
            {
                format(msg,sizeof(msg),"» O : %s diz: %s", Nome, tmp);
                SendClientMessageToAll(0xE0FFFFAA,msg);
                UsouComando[playerid][3] = 1;
                SetTimerEx("UsouComando1", 60000, false, "i", playerid);
                return 1;
            }
        }
Linha:
pawn Код:
format(msg,sizeof(msg),"» O: %s diz: %s", Nome, tmp);
Erro:
pawn Код:
error 076: syntax error in the expression, or invalid function call
Reply
#2

pawn Код:
if(strcmp(cmd,"/geral",true)==0)
    {
        if(pInfo[playerid][AdminLevel1] >= 1)
        {
            if(UsouComando[playerid][3] == 1)
            {
                SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Aguarde 1 minuto para falar com todos novamente!");
                return 1;
            }
            new msg[128];
            strmid(tmp,cmdtext,9,strlen(cmdtext));
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, 0xFF0000AA,"/geral [texto]");
                return 1;
            }
            else
            {
                new pNome[MAX_PLAYER_NAME];
                pNome = GetPlayerName(playerid,pNome,sizeof(pNome));
                format(msg,sizeof(msg),"» O : %s diz: %s", pNome, tmp);
                SendClientMessageToAll(0xE0FFFFAA,msg);
                UsouComando[playerid][3] = 1;
                SetTimerEx("UsouComando1", 60000, false, "i", playerid);
                return 1;
            }
        }
Testa ai '-'.
Reply
#3

Quote:
Originally Posted by darkxdll
Посмотреть сообщение
pawn Код:
if(strcmp(cmd,"/geral",true)==0)
    {
        if(pInfo[playerid][AdminLevel1] >= 1)
        {
            if(UsouComando[playerid][3] == 1)
            {
                SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Aguarde 1 minuto para falar com todos novamente!");
                return 1;
            }
            new msg[128];
            strmid(tmp,cmdtext,9,strlen(cmdtext));
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, 0xFF0000AA,"/geral [texto]");
                return 1;
            }
            else
            {
                new pNome[MAX_PLAYER_NAME];
                pNome = GetPlayerName(playerid,pNome,sizeof(pNome));
                format(msg,sizeof(msg),"» O : %s diz: %s", pNome, tmp);
                SendClientMessageToAll(0xE0FFFFAA,msg);
                UsouComando[playerid][3] = 1;
                SetTimerEx("UsouComando1", 60000, false, "i", playerid);
                return 1;
            }
        }
Testa ai '-'.
Deixa quieto D:
Eu esqueci da
pawn Код:
new nome[30];
Mas valeu a intenзгo '-'
Reply
#4

Cara , й oq foi que eu fiz ? '-'
Quase a mesma coisa manin.
.


#Off.
Esse server da sua sign й seu ? '-'
Reply
#5

Quote:
Originally Posted by darkxdll
Посмотреть сообщение
Cara , й oq foi que eu fiz ? '-'
Quase a mesma coisa manin.
.


#Off.
Esse server da sua sign й seu ? '-'
Sim й meu '-'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)