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

Need help with variable


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-29-2012 , 11:04   Re: Need help with variable
Reply With Quote #21

Use FVault or New File Vault. Both are located in Code Snippets/Tutorials.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 02-29-2012 , 11:34   Re: Need help with variable
Reply With Quote #22

You can make a example for me ?
Torge is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-29-2012 , 11:49   Re: Need help with variable
Reply With Quote #23

There are examples in those threads.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 02-29-2012 , 13:24   Re: Need help with variable
Reply With Quote #24

Quote:
Originally Posted by Exolent[jNr] View Post
There are examples in those threads.
Hmm... ok..
Torge is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 03-21-2012 , 15:54   Re: Need help with variable
Reply With Quote #25

I tryed nvault_touch but it don't work :S
Torge is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-21-2012 , 16:01   Re: Need help with variable
Reply With Quote #26

Quote:
Originally Posted by Torge View Post
I tryed nvault_touch but it don't work :S
All it does is update the timestamp for the entry.
What are you trying to do?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 03-21-2012 , 16:05   Re: Need help with variable
Reply With Quote #27

Quote:
Originally Posted by Exolent[jNr] View Post
All it does is update the timestamp for the entry.
What are you trying to do?
I try to update the number, but I think I'm to stupid..
Torge is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-21-2012 , 16:05   Re: Need help with variable
Reply With Quote #28

Quote:
Originally Posted by Torge View Post
I try to update the number, but I think I'm to stupid..
What number? Is it the data that is stored in the vault, or the timestamp of when it was stored?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 03-21-2012 , 16:07   Re: Need help with variable
Reply With Quote #29

Quote:
Originally Posted by Exolent[jNr] View Post
What number? Is it the data that is stored in the vault, or the timestamp of when it was stored?
This 1 Torge, I try to update the number because it's log every time 1 torge - 2 torge :/
Torge is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-21-2012 , 16:10   Re: Need help with variable
Reply With Quote #30

Well first you have to get the old value, then add 1.

So:
Code:
// you will have to change the variables like // "vault" and "key" to the proper variables // since they are only examples here // grab old value new old = nvault_get(vault, key); // add 1 to old value old += 1; // convert to a string for storage new value[12]; num_to_str(old, value, charsmax(value)); // store new value in vault nvault_set(vault, key, value);
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 07:58.


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