Raised This Month: $ Target: $400
 0% 

I need a friend! And a couple questions.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PreDominance
Member
Join Date: Jul 2014
Old 07-29-2014 , 01:29   I need a friend! And a couple questions.
Reply With Quote #1

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.

Last edited by PreDominance; 07-29-2014 at 03:23.
PreDominance is offline
Old 07-29-2014, 17:42
PreDominance
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
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 12:53.


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