Raised This Month: $ Target: $400
 0% 

how to add 2 things


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SPT1
Senior Member
Join Date: Aug 2012
Old 08-17-2012 , 18:02   how to add 2 things
Reply With Quote #1

like i mean
PHP Code:
public client_disconnect(id
{
    if (!
is_user_bot(id))
    {
        
InsertInfo(id);
    } 
so how will i add this?
PHP Code:
public client_disconnect(id){
    new 
name[32]
    
    
get_user_name(id,name,31)   
    
replace_all(name,32,"'","")
    
replace_all(name,32,"^"","")
    
    PlayedTime[id] = get_playedtime(id)
    
    formatex(g_query,511,"
UPDATE played_time SET playedtime='%d' WHERE name='%s'",PlayedTime[id],name)
    SQL_ThreadQuery(sql,"
query",g_query)
    
    PlayedTime[id] = 0

__________________
AMXMODX
SPT1 is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 08-17-2012 , 18:07   Re: how to add 2 things
Reply With Quote #2

Don't really get what you're asking...
__________________

Accepting all kinds of requests via private message.
matsi is offline
SPT1
Senior Member
Join Date: Aug 2012
Old 08-17-2012 , 18:33   Re: how to add 2 things
Reply With Quote #3

PHP Code:
public client_disconnect(id)  

    if (!
is_user_bot(id)) 
    { 
        
InsertInfo(id); 
    }  
 new 
name[32
     
    
get_user_name(id,name,31)    
    
replace_all(name,32,"'",""
    
replace_all(name,32,"^"","") 
     
    PlayedTime[id] = get_playedtime(id) 
     
    formatex(g_query,511,"
UPDATE played_time SET playedtime='%d' WHERE name='%s'",PlayedTime[id],name) 
    SQL_ThreadQuery(sql,"
query",g_query) 
     
    PlayedTime[id] = 0 

if i do this will it work?
__________________
AMXMODX
SPT1 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2012 , 18:54   Re: how to add 2 things
Reply With Quote #4

What exactly are you trying to do?
__________________
fysiks is offline
Reply



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 05:45.


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