[DUDA] Por quй no sirve, verificar IP..
#1

Ayuda por que no me sirve este
es un sistema de baneo mediante MySQL que hize yo... bueno les dejo el cуdigo:

pawn Код:
new uIP[50];
GetPlayerIp(playerid,uIP,sizeof(uIP));
if(!strcmp( uIP, bIP[playerid], true,strlen(uIP)))//verifica si las IP's son iguales, no funciona xd.
{
//funcion q hara si las ips fueron exactamente iguales.. pero no funciona D':
}
asi defino bIP:
pawn Код:
new bIP[MAX_PLAYERS][30];
asi seteo la variable bIP[playerid]
pawn Код:
mysql_fetch_field_row(SQL_STR, "bIP");
//---
strmid(bIP[playerid], SQL_STR, 0, strlen(SQL_STR)); // <-- guarda IP, si la guarda bien ya la pobre.
їSaben por quй no sirve al verificar? :C
si alguien sabe como hacerlo me podria decir como?
Reply


Messages In This Thread
[DUDA] Por quй no sirve, verificar IP.. - by xDarkuzSx - 15.06.2013, 20:40
Respuesta: [DUDA] Por quй no sirve, verificar IP.. - by Dreyfuz - 15.06.2013, 21:49
Respuesta: [DUDA] Por quй no sirve, verificar IP.. - by Zume - 16.06.2013, 15:55

Forum Jump:


Users browsing this thread: 2 Guest(s)