Raised This Month: $ Target: $400
 0% 

Showing Not Ready


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 07-23-2011 , 06:58   Showing Not Ready
Reply With Quote #1

I have a mode that checks if someone is ready or not (you'll see the variable that shows it, g_IsReady), the problem is, that it shows maximum 3 or 2 players that are not ready in the server, and sometimes it doesnt show the name fully, so if my name would be Diegorkable, it would show Diegorka or something like that that is my name and not fully, so it displays just a part of my name, I tried making the variables with [2000] many cells available so it'll let it copy, but still it doesnt, wierd, check the code tell me if you see something please. The Public ShowLeft() refreshes every 1 minute in order to check if he did .rdy or not

PHP Code:
/* Global Variables in the code */
new playersleft 10
new bool:g_bIsReady[11]
new 
notrdy[400] = "Not Ready:^n"
/* Global ... */

public ShowLeft()
{
    if (
playersleft != 0)
    {
        new 
players[32], pnumtempid
     
        
get_players(playerspnum"ch"); 
     
        for( new 
ii<pnumi++ ) 
        { 
            
tempid players[i]; 
            if (
g_bIsReady[tempid] == false)
            {
                new 
playername[200]
                
get_user_name(tempidplayername31)
                new 
toadd[32] = "^n"
                
add(toadd31playername)
                
add(notrdy31toadd)
            }
            
        } 
            
        if (
equali(notrdy"Not Ready:^n"))
        {
            
notrdy "Not Ready:^n^nNone."
        
}
        
        
set_hudmessage(1272552550.030.0506.012.0)
        
show_hudmessage(0notrdy)
        
        
notrdy "Not Ready:^n"
        
set_task(1.0"ShowLeft")
    }
    
    else
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

Diegorkable is offline
 



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 00:47.


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