Raised This Month: $12 Target: $400
 3% 

trash this


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-09-2014 , 13:42   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #11

With this atitude, you won't get any help here.
__________________
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-09-2014 , 14:17   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #12

Quote:
Originally Posted by Syturi0 View Post
Okey, but can you help me?
Does it work with SteamID? If yes, then there is nothing left with which to help.
__________________

Last edited by fysiks; 09-09-2014 at 14:23.
fysiks is offline
Old 09-12-2014, 18:04
skz
This message has been deleted by YamiKaitou. Reason: similar name does not mean the same person
Old 09-12-2014, 18:47
Dr Zayd
This message has been deleted by YamiKaitou. Reason: no
Old 09-12-2014, 18:52
wickedd
This message has been deleted by YamiKaitou. Reason: no
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 09-24-2014 , 07:20   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #13

bumb
Syturi0 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-24-2014 , 08:22   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #14

Quote:
Originally Posted by fysiks View Post
Does it work with SteamID? If yes, then there is nothing left with which to help.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 09-24-2014 , 08:53   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #15

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault>
 
#pragma semicolon       1
 
#define MAX_PLAYERS     32
 
new const PLUGIN[]      =       "XP Load N Save Data";
new const 
VERSION[]     =       "0.1";
new const 
AUTHOR[]      =       "[ZOF 'X']";
 
new 
Vault;
new 
User_XP[MAX_PLAYERS 1];
new 
szNick[MAX_PLAYERS 1][32];
 
public 
plugin_init()
{
        
register_plugin(PLUGINVERSIONAUTHOR);
}
 
public 
plugin_cfg()
{
        
Vault nvault_open("ExampleVault");
       
        if(
Vault == INVALID_HANDLE)
        {
                
set_fail_state("Error opening vault");
        }
}
 
public 
plugin_end()
{
        
nvault_close(Vault);
}
 
public 
client_putinserver(id)
{
        
get_user_name(idszNick[id], charsmax(szNick[]));
       
        
LoadData(id);
}
 
public 
client_disconnect(id)
{
        
SaveData(id);
}
 
public 
LoadData(id)
{
        new 
szData[128], szKey[64];
        
formatex(szDatacharsmax(szData), "%s-Data"szNick[id]);
        
formatex(szKeycharsmax(szKey), "%d"User_XP[id]);
       
        
nvault_get(VaultszKeyszData);
       
        new 
XP[MAX_PLAYERS];
        
parse(szDataXPcharsmax(XP));
       
        
User_XP[id] = str_to_num(XP);
}
 
public 
SaveData(id)
{
        new 
szData[128], szKey[64];
        
formatex(szDatacharsmax(szData), "%s-Data"szNick[id]);
        
formatex(szKeycharsmax(szKey), "%d"User_XP[id]);
       
        
nvault_set(VaultszKeyszData);

__________________
popeye10 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-24-2014 , 11:44   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #16

Quote:
Originally Posted by popeye10 View Post
snipped
Quote:
Originally Posted by fysiks View Post
Does it work with SteamID? If yes, then there is nothing left with which to help.
__________________
WildCard65 is offline
Old 09-25-2014, 20:19
Syturi0
This message has been deleted by Syturi0.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-25-2014 , 20:21   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #17

Quote:
Originally Posted by Syturi0 View Post
???
Do you you have a question to go with those question marks?
__________________
fysiks is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 09-25-2014 , 20:23   Re: [HELP] Plugin Not Saving Players Data
Reply With Quote #18

Quote:
Originally Posted by fysiks View Post
Do you you have a question to go with those question marks?
I dont understand what that plugin is lol
Syturi0 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 18:18.


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