Raised This Month: $ Target: $400
 0% 

Desvirtúe aquí.


  
 
 
Thread Tools Display Modes
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 09-18-2013 , 09:51   Re: Desvirtúe aquí.
#26101

Entendido pues, listo ya me cambie la firma.
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)
Winchester90 is offline
Destro-
Veteran Member
Join Date: Jun 2010
Location: $me->location();
Old 09-18-2013 , 11:34   Re: Desvirtúe aquí.
#26102

Alguien tiene idea como se podría hacer esto....

http://dominiolol.com/index.php
Dentro hay un link para descargar un archivo con un token generado por la ip.
http://dominiolol.com/descargar.php?...kwjqkejwjkqkeq

hay alguna forma de obtener ese token desde una web externa ?,algo como $post/$get de jquery pero sin la limitación en el mismo dominio...
__________________

Last edited by Destro-; 09-18-2013 at 12:07.
Destro- is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 09-18-2013 , 12:14   Re: Desvirtúe aquí.
#26103

lo q es estar al pedo sin internet durante un buen rato...

PHP Code:
#include <amxmodx>
#include <sqlx>

new const PLUGIN[] = "FG Guardado ExpMode"

#define VERSION "1.0"
#define AUTHOR "[R]ak"

// Include? Paso..

/********************************************************/
                        /********/
native Handle:fg_guardado_add_db();        /********/
native fg_guardado_id(id);            /********/
native fg_guardado_ed_ok(id);            /********/
                        /********/
forward fg_guardado_login(dbIDidnewuser);    /********/
                        /********/
/********************************************************/

new const TABLE[] = "expmode"
new const QUERY_HANDLE[] = "DataHandlerExpMode"

new Handle:g_hTuple;

enum {
    
    
CREAR_DATOS 1,
    
GUARDAR_DATOS,
    
CARGAR_DATOS    
    
}

public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
MySQLx_Init()
        
}

public 
fg_guardado_login(dbIDidnewuser) {
    
    new 
szQuery[128], iData[2]
    
    
iData[1] = id
    
    
if(newuser) {
        
        
iData[0] = CREAR_DATOS;
    
        
formatex(szQuerycharsmax(szQuery), "INSERT INTO %s ( id ) VALUES ( %d )"TABLEdbID)
        
    }
    else {
        
        
iData[0] = CARGAR_DATOS;
    
        
formatex(szQuerycharsmax(szQuery), "SELECT * FROM %s WHERE id=%d"TABLEdbID)
        
    }
    
    
SQL_ThreadQuery(g_hTupleQUERY_HANDLEszQueryiData2)
    
}

public 
DataHandlerExpMode(failstateHandle:Queryerror[], error2data[], datasizeFloat:time) {
        
    static 
idtype;
    
    
type data[0]
    
    
id data[1]
    
    switch(
failstate){
        
        case 
TQUERY_CONNECT_FAILED: {
            
            
log_to_file("SQL_LOG_EXPMODE.txt""Error en la conexion al MySQL [%i]: %s"error2error)
            
            return
            
        }
        case 
TQUERY_QUERY_FAILED:
            
log_to_file("SQL_LOG_EXPMODE.txt""Error en la consulta al MySQL [%i]: %s"error2error)
            
    }
    
    if(!
is_user_connected(id))
        return
    
    switch(
type) {
    
        case 
CARGAR_DATOS: {
            
            
fg_guardado_ed_ok(id)
            
        }
        case 
CREAR_DATOS:
            
fg_guardado_ed_ok(id)
        
    }
}

MySQLx_Init() {
    
    
g_hTuple fg_guardado_add_db()
    
    if(!
g_hTuple) {
        
        
log_to_file("SQL_ERROR.txt""Invalid Handle; Plugin Name: %s."PLUGIN)
                
        return 
pause("a");
        
    }
    
    new const 
szQuery[] = "CREATE TABLE IF NOT EXISTS expmode ( id INT( 10 ) NOT NULL PRIMARY KEY , Nivel INT( 5 ) NOT NULL DEFAULT '1',  Exp INT( 10 ) NOT NULL DEFAULT '0' );"
    
    
SQL_ThreadQuery(g_hTupleQUERY_HANDLEszQuery)
    
    return 
true
    

en otro plugin

PHP Code:
public plugin_natives() {
    
    
register_native("fg_guardado_id""_fg_guardado_id")
    
    
register_native("fg_guardado_add_db""_fg_guardado_add_db")
    
    
register_native("fg_guardado_ed_ok""_fg_guardado_ed_ok")
    
}
    
public 
_fg_guardado_id(iPluginiParams) {
    
    new 
id get_param(1)
    
    if(
g_estado[id] == OFFLINE)
        return -
1
    
    
return g_id[id]
    
}

public 
Handle:_fg_guardado_add_db(iPluginiParams) {
    
    
g_ED_Num++
    
    return 
g_hTuple
    
}

public 
_fg_guardado_ed_ok(iPluginiParams) {
    
    new 
id get_param(1)
    
    if(
g_estado[id] != CARGANDO_EXTERNAL_DATA || !is_user_connected(id))
        return 
false
    
    g_DataLoad
[id]++
    
    if(
g_DataLoad[id] == g_ED_Num)
        
func_login_success(id)
    
    return 
true
    

el primero es la base q voy a usar en distintos plugins para obtener y guardar datos en distintas tablas en una misma db
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 09-18-2013 at 12:31.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 09-18-2013 , 12:53   Re: Desvirtúe aquí.
#26104

se ve que no aprenden a NO PUBLICITAR SERVIDORES CON DPROTO;



ahora entro al sv para sacar la screen correspondiente

__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 09-18-2013 at 13:01.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 09-18-2013 , 13:18   Re: Desvirtúe aquí.
#26105

Quote:
Originally Posted by rak View Post
lo q es estar al pedo sin internet durante un buen rato...

PHP Code:
#include <amxmodx>
#include <sqlx>

new const PLUGIN[] = "FG Guardado ExpMode"

#define VERSION "1.0"
#define AUTHOR "[R]ak"

// Include? Paso..

/********************************************************/
                        /********/
native Handle:fg_guardado_add_db();        /********/
native fg_guardado_id(id);            /********/
native fg_guardado_ed_ok(id);            /********/
                        /********/
forward fg_guardado_login(dbIDidnewuser);    /********/
                        /********/
/********************************************************/

new const TABLE[] = "expmode"
new const QUERY_HANDLE[] = "DataHandlerExpMode"

new Handle:g_hTuple;

enum {
    
    
CREAR_DATOS 1,
    
GUARDAR_DATOS,
    
CARGAR_DATOS    
    
}

public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
MySQLx_Init()
        
}

public 
fg_guardado_login(dbIDidnewuser) {
    
    new 
szQuery[128], iData[2]
    
    
iData[1] = id
    
    
if(newuser) {
        
        
iData[0] = CREAR_DATOS;
    
        
formatex(szQuerycharsmax(szQuery), "INSERT INTO %s ( id ) VALUES ( %d )"TABLEdbID)
        
    }
    else {
        
        
iData[0] = CARGAR_DATOS;
    
        
formatex(szQuerycharsmax(szQuery), "SELECT * FROM %s WHERE id=%d"TABLEdbID)
        
    }
    
    
SQL_ThreadQuery(g_hTupleQUERY_HANDLEszQueryiData2)
    
}

public 
DataHandlerExpMode(failstateHandle:Queryerror[], error2data[], datasizeFloat:time) {
        
    static 
idtype;
    
    
type data[0]
    
    
id data[1]
    
    switch(
failstate){
        
        case 
TQUERY_CONNECT_FAILED: {
            
            
log_to_file("SQL_LOG_EXPMODE.txt""Error en la conexion al MySQL [%i]: %s"error2error)
            
            return
            
        }
        case 
TQUERY_QUERY_FAILED:
            
log_to_file("SQL_LOG_EXPMODE.txt""Error en la consulta al MySQL [%i]: %s"error2error)
            
    }
    
    if(!
is_user_connected(id))
        return
    
    switch(
type) {
    
        case 
CARGAR_DATOS: {
            
            
fg_guardado_ed_ok(id)
            
        }
        case 
CREAR_DATOS:
            
fg_guardado_ed_ok(id)
        
    }
}

MySQLx_Init() {
    
    
g_hTuple fg_guardado_add_db()
    
    if(!
g_hTuple) {
        
        
log_to_file("SQL_ERROR.txt""Invalid Handle; Plugin Name: %s."PLUGIN)
                
        return 
pause("a");
        
    }
    
    new const 
szQuery[] = "CREATE TABLE IF NOT EXISTS expmode ( id INT( 10 ) NOT NULL PRIMARY KEY , Nivel INT( 5 ) NOT NULL DEFAULT '1',  Exp INT( 10 ) NOT NULL DEFAULT '0' );"
    
    
SQL_ThreadQuery(g_hTupleQUERY_HANDLEszQuery)
    
    return 
true
    

en otro plugin

PHP Code:
public plugin_natives() {
    
    
register_native("fg_guardado_id""_fg_guardado_id")
    
    
register_native("fg_guardado_add_db""_fg_guardado_add_db")
    
    
register_native("fg_guardado_ed_ok""_fg_guardado_ed_ok")
    
}
    
public 
_fg_guardado_id(iPluginiParams) {
    
    new 
id get_param(1)
    
    if(
g_estado[id] == OFFLINE)
        return -
1
    
    
return g_id[id]
    
}

public 
Handle:_fg_guardado_add_db(iPluginiParams) {
    
    
g_ED_Num++
    
    return 
g_hTuple
    
}

public 
_fg_guardado_ed_ok(iPluginiParams) {
    
    new 
id get_param(1)
    
    if(
g_estado[id] != CARGANDO_EXTERNAL_DATA || !is_user_connected(id))
        return 
false
    
    g_DataLoad
[id]++
    
    if(
g_DataLoad[id] == g_ED_Num)
        
func_login_success(id)
    
    return 
true
    

el primero es la base q voy a usar en distintos plugins para obtener y guardar datos en distintas tablas en una misma db
SQL_ThreadQuery, no por favor...
--------------------------------------
con respecto a no-steam/dproto, tengo entendido que tú creaste un mapa para un servidor (mejor dicho comunidad) que utiliza dproto ?

Last edited by baneado; 09-18-2013 at 13:19.
baneado is offline
MexPower
Veteran Member
Join Date: Nov 2012
Old 09-18-2013 , 13:50   Re: Desvirtúe aquí.
#26106

Quote:
Originally Posted by baneado View Post
SQL_ThreadQuery, no por favor...
--------------------------------------
con respecto a no-steam/dproto, tengo entendido que tú creaste un mapa para un servidor (mejor dicho comunidad) que utiliza dproto ?
Eso no importa la gente puede dar soporte a quien quiera, pero si el dproto no esta permitido por ende menos hacer spam de servers con ello
__________________
Allied Modders En Español
MexPower is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 09-18-2013 , 13:51   Re: Desvirtúe aquí.
#26107

Quote:
Originally Posted by baneado View Post
SQL_ThreadQuery, no por favor...
??????????
Quote:
Originally Posted by baneado View Post
con respecto a no-steam/dproto, tengo entendido que tú creaste un mapa para un servidor (mejor dicho comunidad) que utiliza dproto ?
y esto q tiene q ver o.o; yo no hago publicidad de ningun tipo a dicha comunidad; y si... es el mejor mapa que se hizo para esa comunidad.. lastima q perdi el rmf
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 09-18-2013 at 13:52.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 09-18-2013 , 13:56   Re: Desvirtúe aquí.
#26108

Quote:
Originally Posted by rak View Post
??????????

y esto q tiene q ver o.o; yo no hago publicidad de ningun tipo a dicha comunidad; y si... es el mejor mapa que se hizo para esa comunidad.. lastima q perdi el rmf
usa un descompilador bsp, pasalo a .map y listo lol
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 09-18-2013 , 13:58   Re: Desvirtúe aquí.
#26109

Quote:
Originally Posted by Roccoxx View Post
usa un descompilador bsp, pasalo a .map y listo lol
no se puede... si no me equivoco creo q era sobrecargandolo con muchos wads q evitas la descompilacion del mapa e.e

edit: la cuestion es q habia buscado la forma de q no se pudiera descompilar
__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 09-18-2013 at 13:59.
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 09-18-2013 , 14:10   Re: Desvirtúe aquí.
#26110

Quote:
Originally Posted by MexPower View Post
Eso no importa la gente puede dar soporte a quien quiera, pero si el dproto no esta permitido por ende menos hacer spam de servers con ello
por lo menos que no diga esto:
Quote:
Originally Posted by rak View Post
lo q no apruebo es el robo de plugins y el no-steam lo cual tmb esta incluido el uso de dproto..
Quote:
Originally Posted by rak View Post
??????????

y esto q tiene q ver o.o; yo no hago publicidad de ningun tipo a dicha comunidad; y si... es el mejor mapa que se hizo para esa comunidad.. lastima q perdi el rmf
SQL_PrepareQuery no es más rápido ?

nada, que das soporte a una comunidad con dproto. luego no te quejes de los demás.

Last edited by baneado; 09-18-2013 at 14:11.
baneado is offline
 



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

Forum Jump


All times are GMT -4. The time now is 23:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode