Pulling names from a txt file
#1

I wanted to ask if this is even possible, Have a text file in the scriptfiles, with usernames in it. that are pulled.

say you had a function to give people a variable like.. .Tacos. ok, so you want to give only certain people tacos, so you put their name in a text file before server launch, then, then function is called witch pulls THOSE names, and gives them tacos.

anyone know how to do this? or am i just a brainstormer?
Reply
#2

Yes, this is possible. You can put them into a text file, and read the contents with fread. You then store this information and can do whatever you want with it.
Reply
#3

Brainstormer lol

Look in the file.inc file (include folder), that'll help.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)