SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 09/03/2012, 08:08 PM   #1
[NVC]Eduardo
Huge Clucker
 
[NVC]Eduardo's Avatar
 
Join Date: Jan 2012
Posts: 226
Reputation: 1
Post [Ajuda] Erro

Alguém pode me ajuda a arruma esse erro
pawn Code:
C:\Users\Casa\Desktop\brasil expert\gamemodes\Race.pwn(4325) : error 017: undefined symbol "GetNumberOfPlayersOnThisIP"
C:\Users\Casa\Desktop\brasil expert\gamemodes\Race.pwn(29164) : warning 219: local variable "anim" shadows a variable at a preceding level
C:\Users\Casa\Desktop\brasil expert\gamemodes\Race.pwn(29170) : warning 219: local variable "anim" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Linha:
pawn Code:
}ARConnect(playerid);
new connecting_ip[32+1];
GetPlayerIp(playerid,connecting_ip,32);
new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP){
new tmp3[50];
GetPlayerIp(playerid,tmp3,50);
SendClientMessage(playerid, -1, "3 CONEXÕES COM O MESMO IP NO SERVIDOR É PROIBIDO!");
new stringbot[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
new File:BOTS=fopen("bots.txt", io_append);
format(stringbot, sizeof(stringbot), "Player: %s - IP: %s\r\n", pname, tmp3);
fwrite(BOTS, stringbot);
fclose(BOTS);
Ban(playerid);
}
__________________
Brasil - Virtual World RPG® v1.0
IP: 37.59.160.245:7777
+ Forum: vwbrasil.forumeiros.com
[NVC]Eduardo is offline   Reply With Quote
Old 09/03/2012, 09:26 PM   #2
Delete_
High-roller
 
Delete_'s Avatar
 
Join Date: Mar 2011
Location: Gurupi - TO
Posts: 1,675
Reputation: 105
Default Re: [Ajuda] Erro

cara eu não aconselho você a usar esse ARconnect, eu usei ele por um tempo, as vezes ele começa a kickar todo mundo.

@TOPIC:

pawn Code:
stock GetNumberOfPlayersOnThisIP(test_ip[])
{
    new against_ip[32+1];
    new x = 0;
    new ip_count = 0;
    for(x=0; x<MAX_PLAYERS; x++) {
        if(IsPlayerConnected(x)) {
            GetPlayerIp(x,against_ip,32);
            if(!strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return ip_count;
}
__________________

Parei. Motivo: Faculdade.
Delete_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] 1 ERRO! Adriano499 Português/Portuguese 2 09/08/2011 12:58 AM
[ajuda]erro rapidinho alguem ajuda wallacematheus Português/Portuguese 1 06/06/2011 12:33 AM
[DUV] /[ERRO]Ajuda erro continua :( Regalado_xD Português/Portuguese 5 12/02/2010 05:48 PM
[AJUDA] MySQL erro, ajuda aqui !!! (HURGENTE) rannyere Português/Portuguese 3 12/02/2010 05:46 PM


All times are GMT. The time now is 09:35 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.