02.09.2010, 16:18
So, I got this:
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?
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");
How could I do that it saves in a map?