[Include] Saving Logs And Formatting Text - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Saving Logs And Formatting Text (
/showthread.php?tid=417257)
Saving Logs And Formatting Text -
Rillsen1998 - 20.02.2013
This include can save logs to file and format text, have four macro defines.
Код:
SendClientFormattedMessage(PlayerId,Color,String[],Arguments)
- PlayerId - Player which get formatted message.
- Color - Color of text.
- String[] - Message.
- Arguments - Arguments.
This function send formatted message to player.
Код:
SendClientFormattedMessageToAll(Color,String[],Arguments)
- Color - Color of text.
- String[] - Message.
- Arguments - Arguments.
This function send formatted message to all.
Код:
SaveLog(Filename[],String[],Arguments)
- Filename[] - Name of file.
- String[] - Log to file.
- Arguments - Arguments.
This function save log to selected file.
Код:
SaveToLog(String[],Arguments)
- String[] - Log to file.
- Arguments - Arguments.
This function save log to file called today's date, you must create folder Logs. Below is links to download.
Re: Saving Logs And Formatting Text -
S0n1COwnsYou - 20.02.2013
Cool script, why u didn't use stock functions instead of #define ??
Re: Saving Logs And Formatting Text -
Rillsen1998 - 20.02.2013
Because in define is it simplest. I do not must use getarg and numargs.
Re: Saving Logs And Formatting Text -
Niko_boy - 20.02.2013
all of them are just useFul functions , not a separte included
Re: Saving Logs And Formatting Text -
Rock - 20.02.2013
Almost the same thing!