AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   jbpacks problem (https://forums.alliedmods.net/showthread.php?t=154831)

bobby3 04-13-2011 18:17

jbpacks problem
 
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??


All times are GMT -4. The time now is 20:09.

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