Hey there! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hey there! (
/showthread.php?tid=441559)
Hey there! -
iGetty - 03.06.2013
I'm having some issues with case sensitivity. People can join my server, for example:
I have my name as:
Callum_Getty
Someone can join with:
callum_getty
cAlLuM_GeTtY
Etc..
Is there a way to stop this, since it's making it so whoever joins like that, gets my admin rank and things.
Thanks!
Re: Hey there! -
rhds - 03.06.2013
Make an account system with password?
Re: Hey there! -
Swyft™ - 03.06.2013
Well I noticed this in my code, no idea if it will do a thing for you... But may help you solve the problem.
pawn Код:
#define UpperToLower(%1) for ( new ToLowerChar; ToLowerChar < strlen( %1 ); ToLowerChar ++ ) if ( %1[ ToLowerChar ]> 64 && %1[ ToLowerChar ] < 91 ) %1[ ToLowerChar ] += 32
I do however, know that one of my scripts has a code to fix that.. If I can find it, I'll reply here.
Re: Hey there! -
iGetty - 03.06.2013
Quote:
Originally Posted by rhds
Make an account system with password?
|
I have that. But if you read it, I stated - They can join and register new names with capital letters, and mixed case letters.
Quote:
Originally Posted by Swyft™
Well I noticed this in my code, no idea if it will do a thing for you... But may help you solve the problem.
pawn Код:
#define UpperToLower(%1) for ( new ToLowerChar; ToLowerChar < strlen( %1 ); ToLowerChar ++ ) if ( %1[ ToLowerChar ]> 64 && %1[ ToLowerChar ] < 91 ) %1[ ToLowerChar ] += 32
I do however, know that one of my scripts has a code to fix that.. If I can find it, I'll reply here.
|
Wouldn't do nothing for me, but thanks.
If you find it, it would be perfect! (:
Re: Hey there! -
Swyft™ - 03.06.2013
Oooh, I just remembered.....
Calgon has a thing in his Vortex Roleplay 2 script, that makes it so any players with a NON-RP Name so like
For example:
CaLgOn_Fiu
or even calgon_fiu
It will rename the player to NONRPNAME[playerid] and it will tell the player to change his name... So I'd check into Vortex Roleplay 2 GM for that.
Re: Hey there! -
iGetty - 03.06.2013
Thanks for that Swyft, I'll look into it to get a better idea on how to code it more better.
Re: Hey there! -
Swyft™ - 03.06.2013
No problemo :P