dini_Create crashes?
#2

Quote:
Originally Posted by RobinOwnz
Посмотреть сообщение
So, I got this:

pawn Код:
new file[256],name[MAX_PLAYER_NAME];
            GetPlayerName(playerid,name,sizeof(name));
            format(file,sizeof(file),"Test/%s.sav",name);
            if(!dini_Exists(file))
            {
                dini_Create(file);
                SendClientMessage(playerid, c_r, "ACCOUNT CREATED");
                print("ACCOUNT CREATED");
            }
            else print("ACCOUNT ALREADY EXIST");
The problem is, that my server crashes when this happends. It doesn't when format(file,sizeof(file),"Test/%s.sav",name); is replaced with format(file,sizeof(file),"%s.sav",name); (Without /Test)..

How could I do that it saves in a map?
Do you have the folder "Test" created in the Scriptfiles directory?
Reply


Messages In This Thread
dini_Create crashes? - by rbN. - 02.09.2010, 16:18
Re: dini_Create in crashes? - by JaTochNietDan - 02.09.2010, 16:19
Re: dini_Create crashes? - by rbN. - 02.09.2010, 16:23
Re: dini_Create crashes? - by JaTochNietDan - 02.09.2010, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)