25.03.2017, 22:11
Quote:
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 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])