Case-sensitive user nick. How?
#1

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?
Reply
#2

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

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)) {
}
Reply
#4

Thank you very much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)