05.06.2015, 04:43
(
Последний раз редактировалось Airman123; 05.06.2015 в 05:22.
)
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.
help me to fix it ;(
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