Raised This Month: $ Target: $400
 0% 

subtracting time code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yamin
BANNED
Join Date: Jan 2012
Location: Sharjah
Old 06-17-2012 , 05:09   Re: subtracting time code
Reply With Quote #3

i am not getting errors just some warnings
PHP Code:
public client_death(killer,victim){
    if(
victim!=isolo)
        return
    
    new 
name[32]
    
get_user_name(victim,name,31)
    
    
formatex(g_query,511,"UPDATE played_time SET playedtime=playedtime-350 WHERE name='%s'",name)
    
SQL_ThreadQuery(sql,"query",g_query)
    
    
get_user_name(killer,name,31)
    
    
formatex(g_query,511,"UPDATE played_time SET playedtime=playedtime+100 WHERE name='%s'",name)
    
SQL_ThreadQuery(sql,"query",g_query)

yamin 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 06:12.


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