Error al compilar
#1
A que se debe que al compilar me diga esto

Código PHP:
C:\Program Files (x86)\Counter-Strike 1.60\cstrike\addons\amxmodx\scripting\include\ttt_const.inc(45) : error 001expected token";"but found "stock" 

Dejo una imagen para que vean...

[Imagen: i2s3HOz.png]

Código PHP:
#include amxmodx
#include adv_vault
#include ttt

new const P_INFO[ ][ ] = { "[TTT] RK Counter""1.0b""Kikizon" };

new const 
Reason[ ] = "Has sido baneado por superar el limite de RK";

enum LOAD 0SAVE }

new 
kRK33 ], kVkFcvar_max_rkscvar_bantime;

public 
plugin_init() 
{
    
register_pluginP_INFO], P_INFO], P_INFO] );
    
    
register_event("DeathMsg""ev_DeathMsg""a");
    
    
cvar_max_rks register_cvar"ttt_max_rks""4" );
    
cvar_bantime register_cvar"ttt_bantime""60" );
    
    
kV adv_vault_open("RKS");
    
kF adv_vault_register_fieldkV"RKS");
    
adv_vault_initkV );
}

public 
client_putinserverindex ManageDataindexLOAD );

public 
client_disconnectindex ManageDataindexSAVE );

public 
ev_DeathMsg()
{
    static 
victimattacker;
    
    
attacker read_data(1);
    
victim read_data(2);
    
    if( !
is_user_connected(attacker) || !attacker ) return;
    
    static 
state_killerstate_victim;
    
state_killer ttt_get_playerstate(attacker);
    
state_victim ttt_get_playerdata(victimPD_KILLEDSTATE);
        
    if(
state_killer == PC_TRAITOR && state_victim == PC_TRAITOR 
    
|| state_killer == PC_DETECTIVE && state_victim == PC_DETECTIVE 
    
|| state_killer == PC_INNOCENT && state_victim == PC_DETECTIVE 
    
|| state_killer == PC_INNOCENT && state_victim == PC_INNOCENT
    
|| state_killer == PC_DETECTIVE && state_victim == PC_INNOCENT )
    {
        ++
kRKattacker ];
        
Checkattacker);
    }
    
}

Checkindex )
{
    if( 
kRKindex ] == get_pcvar_numcvar_max_rks ))
    {
        static 
minutesauthid[35], name[32]; get_user_authidindexauthid34 ); get_user_nameindexname31 );
        
        
minutes get_pcvar_numcvar_bantime );
        
        
kRKindex ] = 0;
        
server_cmd("kick #%d ^"%(%d Mins)^";wait;ban ^"%s^" ^"%s^";wait;writeid"indexReason,  minutesauthidminutes );
        
        
set_hudmessage(100302500.00.3806.012.0 );
        
show_hudmessage0" %s (%s)^nHa sido Baneado ( %d Mins. )^nPor Hacer RK's^nEvita ser baneado y no hagas RK ",
        
nameauthidminutes );
        
    }

}

ManageDataindextype )
{
    if( !
is_user_connectedindex )) return;
    
    static 
name32 ]; get_user_nameindexname31 );
    
    if( 
type == SAVE )
    {
        
adv_vault_set_startkV );
        
adv_vault_set_fieldkVkFkRKindex ]);
        
adv_vault_set_endkV0name );
    }
    
    if( 
type == LOAD )
    {
        if( !
adv_vault_get_preparekV_name )) return;
            
        
kRKindex ] = adv_vault_get_fieldkVkF );
    }


Ese de arriba es el codigo por cierto...
(13/08/2018, 07:59 PM)KrR10VnZl escribió: Usted tiene un retraso de otro mundo, pon de tu parte coño, como es posible que preguntes cual código? muchacho mongólico si dice código, él se refiere al SMA del CTF, dios mio y si no te gusta que te digan que tienes un retraso magistral, astral del otro mundo pon de tú parte y no hagas preguntas tontas.
Responder
#2
lo tenes asi?

Código PHP:
client_disconnectid 
Responder
#3
(30/08/2017, 02:36 PM)warrior escribió: lo tenes asi?

Código PHP:
client_disconnectid 

He actualizado para que mires el codigo Whatdone
(13/08/2018, 07:59 PM)KrR10VnZl escribió: Usted tiene un retraso de otro mundo, pon de tu parte coño, como es posible que preguntes cual código? muchacho mongólico si dice código, él se refiere al SMA del CTF, dios mio y si no te gusta que te digan que tienes un retraso magistral, astral del otro mundo pon de tú parte y no hagas preguntas tontas.
Responder
#4
Intenta reemplazando el stock ttt_const y el warning no afecta en nada creo, puedes usar disconnect o disconnected

Responder
#5
(30/08/2017, 07:01 PM)Skylar escribió: Intenta reemplazando el stock ttt_const y el warning no afecta en nada creo, puedes usar disconnect o disconnected

¿Como que reemplazar la ttt_cost? osea que parte de el stock?

Código PHP:
    stock HamHook:RegisterHamPlayer(Ham:function, const Callback[], Post=0);
        return 
RegisterHam(function, "player"CallbackPost);

    
#if defined _fakemeta_included
        #define write_coord_f(%0) engfunc(EngFunc_WriteCoord, %0);
        
stock message_begin_f(destmsg_type, const Float:origin[3] = {0.0,0.0,0.0}, player=0);
            
engfunc(EngFunc_MessageBegindestmsg_typeoriginplayer);
    
#endif
#endif 

aca sale otro stock

Código PHP:
stock const g_iTeamColors[][] =
{
    {
02550},
    {
255500},
    {
050255},
    {
02550},
    {
02550},
    {
000}
}; 
(13/08/2018, 07:59 PM)KrR10VnZl escribió: Usted tiene un retraso de otro mundo, pon de tu parte coño, como es posible que preguntes cual código? muchacho mongólico si dice código, él se refiere al SMA del CTF, dios mio y si no te gusta que te digan que tienes un retraso magistral, astral del otro mundo pon de tú parte y no hagas preguntas tontas.
Responder
#6
compila con 1.8.2 Nothingdohere
[Imagen: bvpq9q-6.png]

NO DOY AYUDA VIA MENSAJE PRIVADO

* Si requieres algún servicio de pago puedes contactarme vía MP o en mi facebook
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)