If is player alredy registred check
#6

Ah, I have misunderstood you.

EDIT:
Write it so:
PHP код:
case DIALOG_REGISTER:
{
    if (!
response) return Kick(playerid);
    if(
response)
    {
        new 
INI:File INI_Open(UserPath(playerid));
        if(
INI_Exist(UserPath(playerid)))return SendClientMessage(playerid,-1,"This name is already registered!");
        if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT""COL_WHITE"Reg.",""COL_WHITE"bad pass.\n"COL_WHITE"Put pass to regist.","Register","Exit");
        
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); 
- Mencent
Reply


Messages In This Thread
[SOLVED]If is player alredy registred check - by Deny1 - 23.07.2015, 13:21
AW: If is player alredy registred check - by Mencent - 23.07.2015, 13:22
Re: AW: If is player alredy registred check - by Deny1 - 23.07.2015, 13:24
AW: If is player alredy registred check - by Mencent - 23.07.2015, 13:25
Re: AW: If is player alredy registred check - by Deny1 - 23.07.2015, 13:26
AW: If is player alredy registred check - by Mencent - 23.07.2015, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)