[HELP]HouseCode Reading
#6

Quote:
Originally Posted by ThomasEvil
Посмотреть сообщение
Idk if i get u at all but yes, i want house codes from numbers. I save their codes by INI_WriteString and i need to read if player input exact code as he have saved
Then you need to use https://sampwiki.blast.hk/wiki/YSI:INI#I....5D.2C_data.29

Then when you have to compare the codes, use https://sampwiki.blast.hk/wiki/Strval for inputtext.

Everything in this line will be the same except you will need to remove strlen and inputtext will be converted from a string into an integer using strval:

pawn Код:
if(strlen(inputtext) == PlayerInfo[playerid][pHouseCode])
And your "house system" is going to be broken, because player information and house information should be two separate things. After some time you should realize this.
Reply


Messages In This Thread
[HELP]HouseCode Reading - by ThomasEvil - 25.03.2017, 21:22
Re: [HELP]HouseCode Reading - by Unte99 - 25.03.2017, 21:42
Re: [HELP]HouseCode Reading - by ThomasEvil - 25.03.2017, 21:44
Re: [HELP]HouseCode Reading - by Unte99 - 25.03.2017, 21:53
Re: [HELP]HouseCode Reading - by ThomasEvil - 25.03.2017, 21:59
Re: [HELP]HouseCode Reading - by Unte99 - 25.03.2017, 22:11
Re: [HELP]HouseCode Reading - by ThomasEvil - 25.03.2017, 22:13
Re: [HELP]HouseCode Reading - by ThomasEvil - 25.03.2017, 22:18
Re: [HELP]HouseCode Reading - by Unte99 - 25.03.2017, 22:23
Re: [HELP]HouseCode Reading - by ThomasEvil - 25.03.2017, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)