[AJUDA] Ban
#1

Код:
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\filterscripts\RegLogAdmin.pwn(730) : error 017: undefined symbol "string"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\filterscripts\RegLogAdmin.pwn(730) : error 017: undefined symbol "string"
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\filterscripts\RegLogAdmin.pwn(730) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luciano\Desktop\Gaming of Life - Gang War\filterscripts\RegLogAdmin.pwn(730) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
As linhas...

pawn Код:
if(strcmp(cmd,"/ban", true) == 0)
    if(PlayerInfo[playerid][PlayerAdmin] == 1)
    {
        tmp = strtok(cmdtext, idx);
        GetPlayerName(playerid, sendername, sizeof(sendername));
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_RED, "[BGSL ADM]: Uso correto: /Banir [id do player] [motivo]");
            return 1;
        }
        giveplayerid = strval(tmp);
        {
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    new length = strlen(cmdtext);
                    while ((idx < length) && (cmdtext[idx] <= ' ')) {
                    idx++;
                    }
                    new offset = idx;
                    new result[64];
                    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
                    result[idx - offset] = cmdtext[idx];
                    idx++;
                    }
                    result[idx - offset] = EOS;
                    if(!strlen(result))
                    {
                        SendClientMessage(playerid, COLOR_RED, "[BGSL ADM]: Vocк sу pode banir com uma razгo apropriada!");
                    }
                    else
                    {
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        format(string, sizeof(string), "[BGSL ADM]: O Jogador %s foi banido pelo Admin  %s pelo motivo: %s", giveplayer, sendername, result);
                        SendClientMessageToAll(COLOR_RED, string);
                        BanEx(giveplayerid, result);
                    }
                }
                else
                {
                    format(string, sizeof(string), "[BGSL ADM]: %d nгo й um player ativo!", giveplayerid);
                    SendClientMessage(playerid, COLOR_RED, string);
                }
            }
  }
        return 1;
    }
Peguei do manoel ski... Ajuda aк.
Reply
#2

Coloque essa new no seu cmd:
pawn Код:
new string[128];
Reply
#3

Em que lugar?

@edit

ae deu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)