Jump to content
rsutton

OpenBankNPC question

Recommended Posts

Other than integer comparison is much faster than strings? Plus you avoid having to convert everything to upper/lower case to make sure you have a match and you don't have to worry about spelling typos; the compiler will let you know in advance you have it wrong. I'm sure he had his own reasoning for it.

 

It is a bit of pain in DeclarePlayers using integer constants. One more thing to confuse users. I suppose a form would get around this problem.

Link to comment
Share on other sites

string inputs are no longer used for anything ever, the integer is a constant in globals.scar as explained in the new banking additions thread. For a lot of reasons, mainly to avoid miss/different spellings by the script user and string comparison.

 

If you really wanted to it wouldn't be hard to just use strings in the declare players and then string comparison match it in an array to get the int to put into OpenBank... I mean comon..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...