Accounts System with FileManager
#1

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..

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;
}
Thanks you. Greetings
Reply


Messages In This Thread
Accounts System with FileManager - by luis_lpv_22 - 18.01.2011, 23:29
Re: Accounts System with FileManager - by Anthonyx3' - 18.01.2011, 23:40
Respuesta: Accounts System with FileManager - by luis_lpv_22 - 18.01.2011, 23:44
Re: Accounts System with FileManager - by Ricop522 - 18.01.2011, 23:52
Respuesta: Accounts System with FileManager - by luis_lpv_22 - 18.01.2011, 23:53

Forum Jump:


Users browsing this thread: 3 Guest(s)