Raised This Month: $ Target: $400
 0% 

[ES] No puedo hacer qe el level baje ):


  
 
 
Thread Tools Display Modes
Author Message
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 12-02-2009 , 12:41   [ES] No puedo hacer qe el level baje ):
#1

trate de mil maneras pero no se me ocurrio nada para qe el level baje T_T

aver si me dan una mano , como subir sube bien

PHP Code:
 public check_level(id)
{
    new 
LastLevel[33]
        
    if(
g_level[id] < sizeof (LEVELS))
    {
        while(
g_ammopacks[id] >= LEVELS[g_level[id]])
        {
            
LastLevel[id] = g_level[id]
            
g_level[id]++;
            
client_cmd(id"spk %s"LevelUp)
        }
    }
    else
    {
        while(
g_ammopacks[id] < LEVELS[g_level[id]])
        {
            
LastLevel[id] = g_level[id]    
            
g_level[id]--;
            
client_cmd(id"spk %s"LevelDown)
        }
    }

__________________

"There is no knowledge, that is not power"

Last edited by eXacT; 12-02-2009 at 12:48.
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
xfile_
Senior Member
Join Date: Apr 2009
Old 12-02-2009 , 12:55   Re: [ES] No puedo hacer qe el level baje ):
#2

Segun mi punto de vista tenes 2 opciones; elegi la que te conviene:

1 - No guardes los niveles
2-
PHP Code:
public check_level(id)
{
    new 
LastLevel[33]
        
    if(
g_level[id] < sizeof (LEVELS))
    {
        while(
g_ammopacks[id] >= LEVELS[g_level[id]])
        {
            
LastLevel[id] = g_level[id]
            
g_level[id]++;
            
client_cmd(id"spk %s"LevelUp)
        }
        while(
g_ammopacks[id] < LEVELS[g_level[id]])
        {
            
LastLevel[id] = g_level[id]    
            
g_level[id]--;
            
client_cmd(id"spk %s"LevelDown)
        }
    }

__________________

Last edited by xfile_; 12-02-2009 at 13:21.
xfile_ is offline
Send a message via MSN to xfile_
Cuchii
BANNED
Join Date: Sep 2009
Location: Cordoba,Argentina
Old 12-02-2009 , 12:57   Re: [ES] No puedo hacer qe el level baje ):
#3

Perdon por la ignorancia , pero que es DB ? (Database?)
Cuchii is offline
Send a message via MSN to Cuchii
Old 12-02-2009, 13:15
xfile_
This message has been deleted by xfile_.
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 12-02-2009 , 14:20   Re: [ES] No puedo hacer qe el level baje ):
#5

los niveles, ,los guardo con nvault
y para cargarlos uso nvault_lookup

DB es data base, donde se almacenan datos guardados (:
__________________

"There is no knowledge, that is not power"
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
 



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 01:24.


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