Raised This Month: $ Target: $400
 0% 

String from Vault


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
watch
Senior Member
Join Date: Sep 2005
Old 10-05-2005 , 13:03   String from Vault
Reply With Quote #1

hey this is quite a nooby question but ive saved a string in the vault like this

Code:
        new query_name[32]         get_user_name(id,query_name,31)         new vaultkey[20], vaultdata[21]         format(vaultkey,19,"Record_Name");         format(vaultdata,20,"%s",query_name);         set_vaultdata(vaultkey,vaultdata)

and when the plugin registers i want it to get the name

so i put this
Code:
    format(vaultkey,19,"Record_Name");     get_vaultdata(vaultkey,vault_data,20)

then i want to make a crecord_name (just a thing to store the name of the person with the most credits so i can display it to players) = vault_data but i dont know how. im guessing its quite simple tho ive tried

crecord_name = vault_data but i get compile errors
watch is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-05-2005 , 13:42  
Reply With Quote #2

post the whole code plz ^^
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
watch
Senior Member
Join Date: Sep 2005
Old 10-05-2005 , 14:03  
Reply With Quote #3

ah dammit now i realise forgot to put [21] after new crecord_name

thanks anyway i havnt scripted for quite a while as you can see
watch 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 15:11.


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