23.07.2015, 13:24
Quote:
case DIALOG_REGISTER: { if (!response) return Kick(playerid); if(response) { if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Reg.",""COL_WHITE"bad pass.\n"COL_WHITE"Put pass to regist.","Register","Exit"); new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Password",udb_hash(inputtext)); INI_WriteInt(File,"Cash",0); INI_WriteInt(File,"Admin",0); INI_WriteInt(File,"Age",0); INI_WriteInt(File,"Sex",2); INI_WriteInt(File,"Skin",0); INI_WriteInt(File,"Location",0); INI_Close(File); |