Register/login system not working correctly...
#9

Код:
if(strlen(params))
    {
        new pass[256];
        pass = dini_Get(file, "Password");
	if(dini_Exists(file))
	    {
                 if(!strlen(params))SendClientMessage(playerid,0xFFFFFFFF,"You must type a password");
	         if(strcmp(params, pass, false))
		    {
	                
		        dini_IntSet(file,"Logged",1);
			Player[playerid][Logged] = 1;
			Player[playerid][Level] = dini_Int(file,"Level");
			SendClientMessage(playerid,0xFFFFFFFF,"You are logged now, you can click on spawn button!");
			return 1;
                    }
                        
		 else
		    {
                    SendClientMessage(playerid, 0xFFFFFFFF, "Wrong password");
		    }
	    }
	}
try that but your not setting the file nam it looks like to me how do you define "file"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)