[HELP] Making Script Pull Messages From A File
#1

Hi,

I'm using a version of the News Ticker FS, but added it into my GameMode, It's working fine but, I'm wanting to know how would i make it pull the messages from a file for example.

File is called 'newsmsgs.req' And in the file it is like this:

Код:
Message One
Message Two
Message Three
Below is the part of code that goes at the top of my GM and where the messages are stored:



pawn Код:
forward Nupdate ();
new Ntimer;

new Text:Ntick;

new news[][] =
{
"message_three", "message_two"
};
I'm thinking i would need to alter that code to make it pull from a file but I don't have the slightest clue on how to do that.


Has anyone got any ideas on how I could do this?

Thanks,
Ashley
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)