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?