Aller au contenu

Photo

GetName vs GetFirstName, need help with this.


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Rio420

Rio420
  • Members
  • 63 messages
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 .


#2
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
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

#3
Rio420

Rio420
  • Members
  • 63 messages
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.
.