File with password
#1

Grrrrrrrrr i trying get it working almost 1h and can not make it !
so i ned one example if someone can help

Well what i need is to load and create file with command
/createfile [NAME][PASS] is working but i ned /loadfile [NAME][PASS] - I just can not make it...i dont get how the fuck i can check for password is it correct without getting some error
Here is my create file cmd and i using zcmd,sscanf and DJSON
Код:
CMD:createfile(playerid, params[])
{
    new string[64];
    new file_name[128], pass[128];
    if(sscanf(params, "ss", file_name, pass)) return SendClientMessage(playerid, 0x00FF00AA, "USAGE: /Createfile [File name] [File password]");
    format(file_name, sizeof(file_name), "%s.test", file_name);
    if(!djIsSet(file_name,"Password"))
    {
        djCreateFile(file_name);
        djSet(file_name, "Password", pass);
       	format(string, sizeof(string), "You created file %s with password %f do not forget it", file_name, pass);
	    SendClientMessage(playerid, 0x00FF00AA, string);
	}
	else
    {
    SendClientMessage(playerid, 0x00FF00AA, "That file alredy exist");
    }
	return 1;
}
NOTE:These command is working perfect i need /loadfile COMMAND that is working
Reply


Messages In This Thread
[SOLVED]File with password - by DRIFT_HUNTER - 20.07.2010, 05:55
Re: File with password - by Scenario - 20.07.2010, 06:53
Re: File with password - by DRIFT_HUNTER - 20.07.2010, 07:10
Re: File with password - by DRIFT_HUNTER - 20.07.2010, 08:25
Re: File with password - by straco - 20.07.2010, 09:46
Re: File with password - by DRIFT_HUNTER - 20.07.2010, 16:00
Re: File with password - by Jefff - 20.07.2010, 16:55
Re: File with password - by MadeMan - 20.07.2010, 17:18
Re: File with password - by DRIFT_HUNTER - 21.07.2010, 03:27

Forum Jump:


Users browsing this thread: 2 Guest(s)