Raised This Month: $ Target: $400
 0% 

Clear a variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MagNeto
Member
Join Date: May 2009
Old 09-08-2012 , 03:20   Clear a variable
Reply With Quote #1

I have some issues finding the error.
PHP Code:
#include <amxmodx>

new g_Name[1024][32], first_time 00;

public 
client_authorized(id)
{
    
first_time++;

    if(
first_time)
    {
        
set_task(120.0"clearvar"___"b");
    }
        
    for(; 
1024k++)
    {
        
get_user_name(idg_Name], 31);
    }

    for(new 
0<= ki++)
    {
        if( 
equali(g_Name[i], g_Name[k]) )
        {
            
// exec something
        
}
    }
}

public 
clearvar()
{
    for(new 
01024i++)
    {
        for(new 
032j++)
        {
            
g_Name[i][j] = '\0';
        }
    }

PHP Code:
/tmp/textbxpJsw.sma(33) : error 075input line too long (after substitutions
I'm trying to check if a player has reconnected in the last 120 secs. Also, I want to reuse the g_Name variable, but when I try to assign the NULL value, the compiler won't let me.
Thanks!
MagNeto 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 08:12.


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