View Single Post
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-01-2017 , 16:52   Re: [Debug] Info Rank
Reply With Quote #2

Try

PHP Code:
public event_player_spawn(id) {

    new 
osef[8]
    new 
rank get_user_stats(idosefosef)
    new 
maxrank get_statsnum()
    
    if(
g_oldrank[id] == 0)
        
g_oldrank[id] = rank
    
    
new diff g_oldrank[id] - rank
    g_oldrank
[id] = rank
    
    
new mess[256]
    if(
diff 0) {        
        
formatex(mess191"%L"id"IR_GOOD"diff)
        
ColorChat(idGREENmess)
    }
    else if(
diff 0) {
        
formatex(mess191"%L"id"IR_BAD"abs(diff))
        
ColorChat(idREDmess)
    }
    
formatex(mess191"^3%Ltest"id"IR_RANK"rankmaxrank)
    
ColorChat(idGREYmess)

->

PHP Code:
public event_player_spawn(id
{
    new 
osef[8]
    new 
rank get_user_stats(idosefosef)
    new 
maxrank get_statsnum()
    
    if(
g_oldrank[id] == 0)
        
g_oldrank[id] = rank
    
    
new diff g_oldrank[id] - rank
    g_oldrank
[id] = rank
    
    
new mess[256]
    
    if(
diff 0
    {        
        
formatex(messcharsmax(mess), "%L"id"IR_GOOD"diff)
        
ColorChat(idGREENmess)
    }
    else if(
diff 0
    {
        
formatex(messcharsmax(mess), "%L"id"IR_BAD"abs(diff))
        
ColorChat(idREDmess)
    }
    
formatex(messcharsmax(mess), "^3%L"id"IR_RANK"rankmaxrank)
    
ColorChat(idGREYmess)

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-01-2017 at 16:53.
EFFx is offline