• Convert PData to table?
    10 replies, posted
How do I convert a PData variable into a table exactly if it is supposed to be in that format but isn't?
I don't think PData can store tables, it can store strings, ints and floats. If you want to save a table, you can do so very easily using [b][url=http://wiki.garrysmod.com/?title=Glon.encode]Glon.encode [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] and [b][url=http://wiki.garrysmod.com/?title=Glon.decode]Glon.decode [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]. The library is very easy to use, you simply provide a table, it returns a string and you write to file, same for decode but other way around.
How to create a new file within lua then? like new file.Create("text.txt") how to create a text file with that kind of syntax or whatever?
[QUOTE=TheNerdPest14;30777533]How to create a new file within lua then? like new file.Create("text.txt") how to create a text file with that kind of syntax or whatever?[/QUOTE] If you really want to store tables that way just use SQL directly, its a way faster.
Yeah but what if I don't have SQL?
[QUOTE=TheNerdPest14;30778049]Yeah but what if I don't have SQL?[/QUOTE] Gmod comes with sql, look next time before you ask stupid questions.
[QUOTE=Wizard of Ass;30780484]Gmod comes with sql, look next time before you ask stupid questions.[/QUOTE] No such as stupid question, just stupid people.
[QUOTE=Wizard of Ass;30780484]Gmod comes with sql, look next time before you ask stupid questions.[/QUOTE] Sorry I meant, what if I don't [b][i][u]want[/b][/i][/u] to use SQL?
Sometimes their is only one solution.
[QUOTE=TheNerdPest14;30782001]Sorry I meant, what if I don't [b][i][u]want[/b][/i][/u] to use SQL?[/QUOTE] Then you could glon encode it and put it in a text file, but it's a hell lot slower.
Why can't you glone encode it and put it in pdata
Sorry, you need to Log In to post a reply to this thread.