SA-MP Forums Archive
Server MOTD - 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: Server MOTD (/showthread.php?tid=185020)



Server MOTD - Scenario - 22.10.2010

Hello... How could I go about making a server MOTD read & write to and from a MySQL database? I've tried and was able to get it to save, but I just couldn't get the text to show up where the "%s" variable was, so I gave up. Any ideas?


Re: Server MOTD - [L3th4l] - 22.10.2010

Post your code ( What you have so far ) ( Hope you haven't deleted it yet -_- )


Re: Server MOTD - Scenario - 22.10.2010

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
Post your code ( What you have so far ) ( Hope you haven't deleted it yet -_- )
Yeah, I deleted it.


Re: Server MOTD - MBX97 - 23.10.2010

so why you ask now ? thats too late
Quote:

new MBX is the BEST;




Re: Server MOTD - Scenario - 23.10.2010

No, it's not too late. I can easily re-create the code, but I want somebody else to explain to me how to do it.


Re: Server MOTD - Scenario - 24.10.2010

Bump... Bump... Bump...


Re: Server MOTD - Grim_ - 24.10.2010

Simply retrieve the string from the database (mysql_fetch_string), storing it into an array.

What were you having trouble with?


Re: Server MOTD - Scenario - 24.10.2010

Quote:
Originally Posted by Grim_
Посмотреть сообщение
Simply retrieve the string from the database (mysql_fetch_string), storing it into an array.

What were you having trouble with?
That's what I was doing, but I might of been doing it incorrectly. I'll give it another go and update you on any changes.