[AJUDA] Criando gangzones
#6

O /report:

baseafmax7.pwn(104) : error 017: undefined symbol "idx"
baseafmax7.pwn(105) : error 017: undefined symbol "sendername"
baseafmax7.pwn(105) : error 017: undefined symbol "sendername"
baseafmax7.pwn(105) : error 029: invalid expression, assumed zero
baseafmax7.pwn(105) : fatal error 107: too many error messages on one line

pawn Код:
if(strcmp(cmdtext, "/report", true) == 0 || strcmp(cmdtext, "/reportar", true) == 0)
        {
    new tmp[256];
    tmp = strtok(cmdtext, idx);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(sendername));
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,0x00A100AA,"Use: /report [ID] [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,0xF60000AA,"/report [ID] [Motivo]");
    return 1;
    }
    GetPlayerName(giveplayerid, giveplayer, sizeof(sendername));
    format(string,sizeof(string),"REPORT DE : %s (id %d) Reportou %s (id %d). [Motivo: %s]", giveplayer, giveplayerid, sendername, playerid,result);
    for(new i=0;i<MAX_PLAYERS;i++)
    {
    if(IsPlayerAdmin(i))
    {
    SendClientMessage(i,0xF60000AA,string);
            }
        }
    }
    else
    {
    format(string, sizeof(string), "%d Estб OffLine!", giveplayerid);
    SendClientMessage(playerid, 0xB3B6BCAA, string);
    }
    return 1;
    }
Tenho que definir algumas variбveis, mas como faзo isso?
Reply


Messages In This Thread
[AJUDA] Criando gangzones - by Pedraum - 29.05.2011, 21:17
Re: [AJUDA] Criando gangzones - by Miqueias Barros - 29.05.2011, 21:26
Re: [AJUDA] Criando gangzones - by Dr_Pawno - 29.05.2011, 22:26
Re: [AJUDA] Criando gangzones - by Pedraum - 30.05.2011, 00:00
Re: [AJUDA] Criando gangzones - by Pedraum - 31.05.2011, 01:19
Re: [AJUDA] Criando gangzones - by Pedraum - 01.06.2011, 21:33
Re: [AJUDA] Criando gangzones - by Shadoww5 - 01.06.2011, 22:37
Re: [AJUDA] Criando gangzones - by Pedraum - 01.06.2011, 22:41
Re: [AJUDA] Criando gangzones - by Pedraum - 01.06.2011, 22:45
AW: Re: [AJUDA] Criando gangzones - by Miqueias Barros - 02.06.2011, 02:33

Forum Jump:


Users browsing this thread: 4 Guest(s)