SA-MP Forums Archive
Case-sensitive user nick. How? - 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: Case-sensitive user nick. How? (/showthread.php?tid=530732)



Case-sensitive user nick. How? - bobsona - 08.08.2014

Hello, I'm using Y_INI and I want to ensure that the nicknames are case-sensitive.
In the current situation if my nick is: player and I have one house, If i go into the server with a username playeR, I will have access to the house of the user player. And vice versa.
Like both users are the same user.
I don't know if you misunderstood me, but my English is bad.
Any ideas?


Re: Case-sensitive user nick. How? - ]Rafaellos[ - 08.08.2014

As far as I know, this problem exist only on Windows. If your host is Linux, then it will work fine.


Re: Case-sensitive user nick. How? - [XST]O_x - 08.08.2014

https://sampwiki.blast.hk/wiki/Strcmp
You have ignorecase - if set to false, the names are case-sensitive. player is not the same as playeR.

So wherever you have /enter cmd:
pawn Код:
if(!strcmp(PlayerName(playerid), hInfo[houseid][hOwner], false)) {
}



Re: Case-sensitive user nick. How? - bobsona - 08.08.2014

Thank you very much!