[AJUDA] Erro no GM
#1

Alguem me ajuda com esse erro por favor!
pawn Код:
if(strcmp(cmdtext,"/ban",true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        new tmp2[256];
        tmp2 = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid,BRANCO,"Use /Ban [ID] [Motivo]");
            return 1;
        }
        if(!strlen(tmp2))
        {
            SendClientMessage(playerid,BRANCO,"Use /Ban [ID] [Motivo]");
            return 1;
        }
        new banido[256];
        banido = strval(tmp);
        new motivo[126];
        motivo = strval(tmp2);
        format(string,sizeof(string),"%s Foi Banido Pelo Admin %s, Motivo: %s",banido,pNome(playerid),motivo);
        SendClientMessageToAll(AZUL,string);
        return 1;
    }

Erro:
pawn Код:
C:\Documents and Settings\Pedro Miranda\Desktop\Meus Trabalhos\Em Andamento\HTDM.pwn(87) : error 033: array must be indexed (variable "banido")
C:\Documents and Settings\Pedro Miranda\Desktop\Meus Trabalhos\Em Andamento\HTDM.pwn(89) : error 033: array must be indexed (variable "motivo")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Se puderem ajudar aqui tambem agradeзo: https://sampforum.blast.hk/showthread.php?tid=285408
Reply


Messages In This Thread
[AJUDA] Erro no GM - by Jason` - 24.09.2011, 03:58
Re: [AJUDA] Erro no GM - by WLSF - 24.09.2011, 04:06
Re: [AJUDA] Erro no GM - by Jason` - 24.09.2011, 04:10
Re: [AJUDA] Erro no GM - by Macintosh - 24.09.2011, 04:15
Re: [AJUDA] Erro no GM - by Jason` - 24.09.2011, 04:20
Re: [AJUDA] Erro no GM - by WLSF - 24.09.2011, 04:21
Re: [AJUDA] Erro no GM - by Macintosh - 24.09.2011, 04:24

Forum Jump:


Users browsing this thread: 1 Guest(s)