Raised This Month: $ Target: $400
 0% 

[Ayuda] Compilado del code


  
 
 
Thread Tools Display Modes
Author Message
lRodri.
Member
Join Date: Apr 2012
Location: Argentina
Old 08-26-2012 , 00:20   [Ayuda] Compilado del code
#1

Bueno, segui el tutorial del XP mode (Este) pero me tira errores en el gmsgStatusText.

Acá les dejo el code (dejo la parte del gmsgStatusText ya que es muy largo el code):

PHP Code:
new gmsgStatusText;

#define PLUGIN    "Grenade_Gamev1.2" 
#define AUTHOR    "VodKa" 
#define VERSION    "1.2" 
 
public plugin_init() 

    
register_forwardFM_ClientUserInfoChanged"FWClientUserInfoChanged" )
    
register_event("CurWeapon" "Event_CurWeapon" "be" "1=1" ); 
    
gCvarPluginToggle register_cvar("amx_block_buy""1"
    
cvar_active register_cvar("amx_grenade",  "1"
    
register_plugin(PLUGINVERSIONAUTHOR
    
RegisterHam(Ham_Killed"player""Revivir"1
    
RegisterHamHam_Spawn"player""Ham_PlayerSpawn" 
    
register_clcmd"say /registrarse""CMDRegistrarse" )
    
register_clcmd"IntroducirContrasenia""CMDIntroducirContrasenia" )
    
register_cvar("sv_xpmode""1")
    
register_event("DeathMsg""DeathMsg""a")
    
register_cvar("XP_per_kill""20")
    
register_event("ResetHUD""ResetHud""b")
    
gmsgStatusText get_user_msgid("StatusText")
    
register_event("Niveles""Event_Niveles""be""1=1");
     
    for (new 
0sizeof (gBuyCommands); i++) 
        
register_clcmd(gBuyCommands[i], "BlockBuyCommands"


public 
DeathMsg()
{
    if (!
get_cvar_num("sv_animalmod"))
         return;
    
    new 
attacker read_data(1)
    
    if(
g_PlayerLevel[attacker] == NUM_OF_LEVELS)
         return;
    
    
g_PlayerXP[attacker] += get_cvar_num("XP_per_kill")
    
    if(
g_PlayerXP[attacker] >= LEVELS[g_PlayerLevel[attacker]])
    {
        ++
g_PlayerLevel[attacker];
         
        
client_print(attacker_:print_chat"[Grenade_Game] Felicidades!, haz avanzado al nivel %i!"g_PlayerLevel[attacker])
    }
    
ShowHUD(attacker);
}

ShowHUD(id)    
{
    new 
HUD[51]
    
format(HUD50"[Grenade_Game] Nivel: %i XP: %i"g_PlayerLevel[id], g_PlayerXP[id])

    
message_begin(MSG_ONEgmsgStatusText, {0,0,0}, id)
    
write_byte(0)
    
write_string(HUD)
    
message_end()

Los errores que me tira:

PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Error
Invalid expressionassumed zero on line 47
Error
Invalid function or declaration on line 47
Error
Undefined symbol "gmsgStatusText" on line 68
Error
Undefined symbol "gmsgStatusText" on line 101
Warning
Expression has no effect on line 101
Warning
Expression has no effect on line 101
Warning
Expression has no effect on line 101
Error
Expected token";"but found "}" on line 101
Warning
Loose indentation on line 101
Error
Invalid expressionassumed zero on line 101
Error
Too many error messages on one line on line 101

Compilation aborted
.
7 Errors.
Could not locate output file C:\Users\Rodri\Desktop\gm.amx (compile failed). 
lRodri. is offline
Send a message via MSN to lRodri.
 



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 06:42.


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