Raised This Month: $ Target: $400
 0% 

jbpacks problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bobby3
Member
Join Date: Apr 2011
Old 04-13-2011 , 18:17   jbpacks problem
Reply With Quote #1

I've been looking for a solution but unforgentely i can't find one -.-
So i reedit and i want to see if you guys can help me with it.
What should it sapose to do:
as the plugin suppose to manage jailbreak models, and jbpacks.
I'd added some codes which will load and save users JBpacks
PLugin based on :http://forums.alliedmods.net/showthread.php?t=118107

PHP Code:
public SaveXP(id)
{
    new 
steamid[32]; 
    
get_user_authid(id,steamid,31); 
    new 
vaultkey[64], vaultdata[64]; 
 
    
format(vaultkey,63,"%sJBPACKS",steamid); 
    
format(vaultdata,63,"%d",g_jbpacks[id]); 
    
set_vaultdata(vaultkey,vaultdata); 
 

public 
LoadXP(id)
{
    new 
steamid[32]; 
    
get_user_authid(id,steamid,31); 
    new 
vaultkey[64], vaultdata[64]; 
    
format(vaultkey,63,"%sJBPACKS",steamid); 
    
get_vaultdata(vaultkey,vaultdata,63); 
    
g_jbpacks[id] = str_to_num(vaultdata); 
 

public 
client_connect(id)
{
 
 
         
LoadXP(id)
         
client_print(idprint_chat"[Cannas Jailbreak] JBpack Recuperado!")
         
client_print(idprint_chat"[Cannas Jailbreak] Recuperou %s JBpacks =D"g_jbpacks[id])
 
}
public 
client_disconnect(id)
{
 
 
         
SaveXP(id)
 

Please tell me what is wrong??
bobby3 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 20:09.


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