Author Topic: GetName vs GetFirstName, need help with this.  (Read 315 times)

Legacy_Rio420

  • Full Member
  • ***
  • Posts: 112
  • Karma: +0/-0
GetName vs GetFirstName, need help with this.
« on: September 01, 2013, 11:23:07 pm »


               I'm looking for a way to check the first 14 characters of a GetName() call, if the 14 characters DO match the string, check the database for a flag that allows them to enter using that string assignment, else boot the PC.

I have the call already for the database, I just need a solid example for the GetName stuff.
               
               

               


                     Modifié par Rio420, 03 septembre 2013 - 12:48 .
                     
                  


            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
GetName vs GetFirstName, need help with this.
« Reply #1 on: September 03, 2013, 06:09:41 pm »


               Assuming you've gotten oPC somehow, GetEntering, most likely...


string sName = GetName(oPC);
string sCheck = GetStringLeft(sName, 14);
if (sCheck == "014 characters") {
//dostuff
}

Not compiled, just typed raw, but that's the idea.

Funky
               
               

               
            

Legacy_Rio420

  • Full Member
  • ***
  • Posts: 112
  • Karma: +0/-0
GetName vs GetFirstName, need help with this.
« Reply #2 on: September 04, 2013, 02:57:57 pm »


               Yup, that's kind of what I've already attempted, after I tackle the disaster that was caused yesterday by removing factions, I'm going to let my stubborn side shine today and try once again to accomplish this.
.