[HELP] Making Script Pull Messages From A File - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Making Script Pull Messages From A File (
/showthread.php?tid=70150)
[HELP] Making Script Pull Messages From A File -
Ashley - 22.03.2009
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