Help with strcmp, nick.
#1

Hello, i just made my house system.

I also introduced house key, so the player having key can enter the house.
But there's a little problem with it.

House owner can give maximum 10 keys, all good.

There is a command /ghk [slot] [playerid] to be used to give some one a key.
Im using dini to save data. so in saving file its like, KeyHolder1: (playername) [PlAyErName],

Its get written in exactly the same alphabets (captial, small), as the player chooses at samp cilent, before connecting to the server. (eg: SuPeR_MaN)

But, the problem is that, if the player changes (capital, small) alphabets, he won't be able to enter the house?

How can i fix it, so it ignore capital small thing.

Under Onplayerenterdynamiccp, im using following code.

Код:
if(!strcmp(hInfo[x][hKeyOwner1], PlayerInfo[playerid][pName], CASE_SENSETIVE)

//enter code
help me to fix it ;(
Reply


Messages In This Thread
[+REP] Help With Me Playernick, Using strcmp - by Airman123 - 05.06.2015, 04:43
Re: Help with strcmp, nick. - by Evocator - 05.06.2015, 06:18
Re: Help with strcmp, nick. - by Airman123 - 05.06.2015, 06:21

Forum Jump:


Users browsing this thread: 1 Guest(s)