djSon & changename command..
#4

Quote:
Originally Posted by Skylar Paul
Посмотреть сообщение
I've tried it myself on multiple occasions, and have always ended up in failure. I tend to get quite discouraged when this happens, although i'm exactly sure why, haha. Well, here's some information about my account system.

Files are saved under "PFiles/%s.json" - %s being their username.

I will definately take a look at that library you provided, however; Thank you very much.
A simple note is that is not how djSon was intended to be used, it was actually intended to be used to have all of the players information stored in a single file.

Regardless, it's quite easy to change the name of that file then, all you need is to re-name the file.

Unfortunately there is no file re-naming function that comes with the SA-MP package, although there are plenty of PAWN implementations available around.

Read this great page I found for more information: http://dracoblue.net/dev/renaming-a-file-in-pawn/139/
Reply


Messages In This Thread
djSon & changename command.. - by Skylar Paul - 01.07.2011, 16:11
Re: djSon & changename command.. - by JaTochNietDan - 01.07.2011, 16:15
Re: djSon & changename command.. - by Skylar Paul - 01.07.2011, 16:28
Re: djSon & changename command.. - by JaTochNietDan - 01.07.2011, 16:37
Re: djSon & changename command.. - by Skylar Paul - 01.07.2011, 16:43
Re: djSon & changename command.. - by JaTochNietDan - 01.07.2011, 17:02
Re: djSon & changename command.. - by Skylar Paul - 01.07.2011, 17:11
Re: djSon & changename command.. - by JaTochNietDan - 01.07.2011, 17:15
Re: djSon & changename command.. - by Skylar Paul - 01.07.2011, 17:31
Re: djSon & changename command.. - by Calgon - 01.07.2011, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)