[Pedido]/kick
#3

LoL, aqui dб esses erros:

PHP код:
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "tmp"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "tmp"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "tmp"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error029invalid expressionassumed zero
C
:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error076syntax error in the expression, or invalid function call
C
:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx"
C:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error029invalid expressionassumed zero
C
:\Users\Casa\Desktop\SAMP\gamemodes\[PSA].pwn(542) : error017undefined symbol "idx" 
pawn Код:
528    if(strcmp(cmdtext, "/kick", true) == 0)
529    {
530        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, GOLD, "[ERRO] Vocк nгo й Administrador!");
531        tmp = strtok(cmdtext, idx);
532        if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /kick [ID] [MOTIVO]");
533        new id;
534        id = strval(tmp);
535        new length = strlen(cmdtext);
536        while ((idx < length) && (cmdtext[idx] <= ' '))
537        {
538            idx++;
539        }
540        new offset = idx;
541        new result[64];
542        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
543        {
544            result[idx - offset] = cmdtext[idx];
545            idx++;
546        }
547        result[idx - offset] = EOS;
548        if(!strlen(result)) return SendClientMessage(playerid, -1, "USO: /kick [ID] [MOTIVO]");
549        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "JOGADOR OFFLINE.");
550        new string[256], n[24], n2[24];
551        GetPlayerName(id, n, 24);
552        GetPlayerName(playerid, n2, 24);
553        format(string, 128, "Vocк kickou o jogador %s [ID: %d] | Motivo: %s.", n, id, result);
554        SendClientMessage(playerid, -1, string);
555        format(string, 128, "Vocк foi kickado pelo administrador %s [ID %d] | Motivo: %s.", n2, playerid, result);
556        SendClientMessage(id, -1, string);
557        Kick(id);
558        format(string, 128, "O ADMIN %s kickou o jogador %s | Motivo: %s.", n2, n, result);
559        SendClientMessageToAll(-1, string);
560        return 1;
561    }
Reply


Messages In This Thread
[Pedido]/kick - by Andrew_Guiga - 03.07.2011, 21:56
Re: [Pedido]/kick - by Shadoww5 - 03.07.2011, 22:21
Re: [Pedido]/kick - by [FTC]Scorpion - 03.07.2011, 23:57
Re: [Pedido]/kick - by RockFire - 03.07.2011, 23:59
Re: [Pedido]/kick - by [FTC]Scorpion - 04.07.2011, 00:03
Re: [Pedido]/kick - by Shadoww5 - 04.07.2011, 00:04
Re: [Pedido]/kick - by [FTC]Scorpion - 04.07.2011, 00:10
Re: [Pedido]/kick - by rjjj - 04.07.2011, 00:18
Re: [Pedido]/kick - by Ricop522 - 04.07.2011, 00:24
Re: [Pedido]/kick - by [FTC]Scorpion - 04.07.2011, 00:29

Forum Jump:


Users browsing this thread: 1 Guest(s)