18.01.2011, 23:29
Hi all, I want to make an accounts system with FileManager plugin, but I don't know how to make it correctly.
When u register it should create a directory in: scriptfiles/UserData/%s (player name)
I tried it with this command, but don't works..
Thanks you. Greetings
When u register it should create a directory in: scriptfiles/UserData/%s (player name)
I tried it with this command, but don't works..
pawn Код:
if (strcmp(cmdtext, "/test", true)==0)
{
new directory[100],pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
format(directory, sizeof(directory), "UserData/%s", pName);
dir_create(directory);
return 1;
}