AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Few Vault Questions... (https://forums.alliedmods.net/showthread.php?t=12584)

BioHazardousWaste 04-18-2005 18:48

Few Vault Questions...
 
1) everything is a string right?
2) set_vaultxdata (key, UserExp[id]); or set_vaultxdata (key[], UserExp[id]);?
3)what if i don't know how long a string is? Will get_vaultxdata(Alliance, PlayerAlliance[id], 99) (assume it returns "Zionist") be "Zionist" or will it be "Zionist (92 spaces) "?

And feel free to post any other usefull info on the topc :) Thanx

EDIT:
And one none vault question lol

Is it a good idea to have a function carried out every second, or will it cause a lot of non registered shots and such? What is a good limit.. i'm thinking of something like this:

Code:
for (new i=0; i<=32;i++) {    secs=secs+1;    client_print (id, /*bleh, i forget the var i want here lol*/ "%i seconds elapsed", secs); }

Twilight Suzuka 04-18-2005 20:27

That is my VaultX. You should ask me directly, or post in the module thread.

BioHazardousWaste 04-18-2005 20:38

sorry dude, i took it out anyways, cuz i couldn't get it to work :(. But I meant it in general, didn't realize there was a huge difference.

XxAvalanchexX 04-18-2005 21:33

For the record, if you use 99 and the string is only 5 characters, the rest of the characters are NULL characters or something, not spaces. It won't matter, basically.

Twilight Suzuka 04-18-2005 22:16

VaultX is easy to use. Just set the file you want to save to, then use it like normal vault.

Use trim to eliminate blank spaces.


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

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