Raised This Month: $32 Target: $400
 8% 

format content


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-29-2020 , 17:17   format content
Reply With Quote #1

PHP Code:
    format(content,charsmax(content),"^"%s^" ^"^" ^"bt^" ^"ce^" ;%s (%s - )",authidnameCurrentDate)
    
write_file("addons/amxmodx/configs/users.ini",content,-1
i would like to add a blank line before the text is written, does ^n works here as well or what should i use in order to make it go to the next line because when i use this command it adds after the last player in users.ini, so i would like this to be added under it
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-29-2020 , 17:28   Re: format content
Reply With Quote #2

Why don't you just try it? Also, in this case you can use formatex.

Check this link and you'll see why: https://forums.alliedmods.net/showthread.php?t=127824
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-30-2020 , 15:58   Re: format content
Reply With Quote #3

thanks for information, this is an old plugin that maybe is used that way
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode