20.07.2010, 05:55
(
Последний раз редактировалось DRIFT_HUNTER; 21.07.2010 в 03:35.
Причина: [SOLVED]
)
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
NOTE:These command is working perfect i need /loadfile COMMAND that is working
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; }