Raised This Month: $ Target: $400
 0% 

Duda al setiar exp


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 09-14-2012 , 12:37   Re: Duda al setiar exp
#4

PHP Code:
#include <hamsandwich> 

public plugin_init()
{     
    
RegisterHam(Ham_Killed"player""fwd_killed_post"1)


public 
fwd_killed_post(victimattackershouldgib)
{
    if (!
is_user_connected(attacker) || victim == attacker)
        return 
HAM_IGNORED
    
    g_exp
[attacker] += 20
    update_xp
(attacker20)
    
    return 
HAM_IGNORED

postea la función "update_xp", nose bien a que te referis con que no te sale :/, el sma no te compila o qué¿? porque o lo subiste incomplet o hay funciones y variables que no están presentes.

Acá te lo rehize:

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

#define mostrar_exp(%1) client_print(%1, print_center, "Tienes %d puntos de experiencia!", g_exp[%1])

new g_exp[33]

public 
plugin_init()
{    
    
RegisterHam(Ham_Killed"player""fwd_killed_post"1)


public 
fwd_killed_post(victimattackershouldgib)
{
    if (!
is_user_connected(attacker) || victim == attacker)
        return 
HAM_IGNORED
    
    g_exp
[attacker] += 20
    mostrar_exp
(attacker)
    
    return 
HAM_IGNORED

__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
 



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 20:10.


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