04.07.2014, 10:33
Hello there, i'm trying to make a command called /buypackage and when player enters it, it shows a dialog to the player and they should enter a number in the text bar. there will be a txt file in scriptsfiles called buypackage.txt and i want to know how to detect if the entered number exists in the file buypackage.txt for example:
There are 3 number in buypackage.txt which is in the scriptfiles folder like this:
13546
35464
53634
So, they are in different lines. However player enters number 13546 and i want it to detect if the entered number exists in buypackage.txt.. How should i do it? if there is any include for it tell me, and how to use that include? I will be thankful oh and also +Rep for the answer.
There are 3 number in buypackage.txt which is in the scriptfiles folder like this:
13546
35464
53634
So, they are in different lines. However player enters number 13546 and i want it to detect if the entered number exists in buypackage.txt.. How should i do it? if there is any include for it tell me, and how to use that include? I will be thankful oh and also +Rep for the answer.