Raised This Month: $ Target: $400
 0% 

Doesnt save right


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 01-06-2011 , 19:01   Doesnt save right
Reply With Quote #1

Propably my dumbest post but i need a fresh pear of eyes too see what I couldn't.

PHP Code:
public client_putinserver(id)
{
    new 
g_auth[64]
    
get_user_authid(id,g_auth,63)

 
LastPlaytime[id] =  nvault_get(g_vault,g_auth)
str_to_num(LastPlaytime[id])
 }

ReturnPlaytime(id)
{
szPlaytime[id] = LastPlaytime[id] + get_user_time(id,1)
return 
szPlaytime[id]
}

public 
client_disconnect(id)
{
ReturnPlaytime(id)

  new 
g_auth[64]
    
get_user_authid(id,g_auth,63)

    
nvault_set(g_vault,g_auth,szPlaytime[id])

The output is always unreadable or sometimes dont even write.

Last edited by SpeeDeeR; 01-06-2011 at 19:30.
SpeeDeeR 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 01:57.


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