Raised This Month: $ Target: $400
 0% 

automatic write file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 09-29-2016 , 04:36   automatic write file
Reply With Quote #1

Quote:
"MyFile"
{
"STEAMID"
{
"name" "NAME"
}
}
How can I do that when player is joining the game it automatic add him to the txt file like ^^
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests

Last edited by asherkin; 10-25-2018 at 17:18. Reason: Restore to previous version.
BraveFox is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 09-29-2016 , 05:19   Re: automatic write file
Reply With Quote #2

have fun with files over 10mb and insane server lag when you read them to memory..
don't you think a database is a more proper approach?
__________________
retired
shavit is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 09-29-2016 , 05:20   Re: automatic write file
Reply With Quote #3

https://wiki.alliedmods.net/KeyValue...eMod_Scripting)
__________________
8guawong is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 09-29-2016 , 05:45   Re: automatic write file
Reply With Quote #4

Quote:
Originally Posted by 8guawong View Post
How to add lines?

Quote:
Originally Posted by shavit View Post
have fun with files over 10mb and insane server lag when you read them to memory..
don't you think a database is a more proper approach?
How?
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 09-29-2016 , 08:52   Re: automatic write file
Reply With Quote #5

read the wiki
__________________
8guawong is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 09-29-2016 , 09:08   Re: automatic write file
Reply With Quote #6

Quote:
Originally Posted by 8guawong View Post
read the wiki
Bro,
I read it 3 times!
there is no way to write!
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 09-29-2016 , 09:38   Re: automatic write file
Reply With Quote #7

Quote:
Originally Posted by BraveFox View Post
Bro,
I read it 3 times!
there is no way to write!
you need it to read it a few more times i guess!
__________________
8guawong is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 09-29-2016 , 09:41   Re: automatic write file
Reply With Quote #8

From the Wiki Page:
Code:
kv.ExportToFile("C:\javalia.txt");
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 09-29-2016 , 10:12   Re: automatic write file
Reply With Quote #9

Quote:
Originally Posted by Sillium View Post
From the Wiki Page:
Code:
kv.ExportToFile("C:\javalia.txt");
I want to add lines!
Not to edit the lines!
If this is my config:
Quote:
"MyFile"
{
"STEAMID"
{
"name" "NAME"
}
}
I want it to be changed to:
Quote:
"MyFile"
{
"STEAMID"
{
"name" "NAME"
}
"STEAMID2"
{
"name" "NAME2"
}
}
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-29-2016 , 10:19   Re: automatic write file
Reply With Quote #10

similiar topic
Key Values
__________________
Do not Private Message @me
Bacardi is offline
Reply



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 10:14.


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