AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I need a friend! And a couple questions. (https://forums.alliedmods.net/showthread.php?t=245151)

PreDominance 07-29-2014 01:29

I need a friend! And a couple questions.
 
Greetings,
I'm currently attempting to develop a working warcraft-mod (dubbed Neo Warcraft), and I've made some decent progress into it (12 files, ~800 lines).

Aside from that, since I'm still new to AMX and Pawn, I have multiple small questions that, while often found with google searches, do not have answers or are not the type I need.
If you're willing to put up with a few small inquiries here or there, please, add me @ "penumbra789", or here. I'm not an inexperienced programmer; I've been working with Java for 2 years and C++ for only a few months, but Pawn is new to me as is the idea of a typeless variable system.

Onwards to the questions:

I have two sets of data constantly being loaded and written to. One is from nVault, the other is from a 2-dimensional array of player data. I need a function that, upon client connect, transfers data from the vault to the player data. For this function, should I create one variable and constantly reassign it, or do I create variables for each piece of information that I need?

How does one go about making an optional array? I've seen from the wiki something like:

myFunc(reqParam, opArray[] = "") { }
I'm guessing that should work fine, but I can't test it (it does compile).

And lastly,would it be detrimental to the stability of a server to have 10k+ lines file reading and writing from nVault? This data recording only happens at the end of the round and when a client connects, but still, I'm worried about it. I'm only writing and reading singular lines, for clarity, not thousands; I'm just doing a lot of read/write.

Thanks for any assistance!
Regards,
Steve.


All times are GMT -4. The time now is 12:53.

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