cmd /login
#1

i found a football gamemod and i have this cmd and when i type /login password show me LOGIN ERROR

Код:
//-------------------------------------------------("DUDB")-------------------------------------------------
	if (strcmp(cmd, "/login", true) == 0)
	{
	   	if (dUserINT(PlayerName(playerid)).("banned") == 1)
		{
    	new pName[MAX_PLAYER_NAME];
    	new string1[128];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	format(string1, sizeof(string1), "%s has been kicked from the server, Reason: ACCOUNT BANNED.", pName);
    	SendClientMessageToAll(COLOR_RED, string1);
		Kick(playerid);
  		}
		else if (logged[playerid] != 1 && udb_Exists(PlayerName(playerid)))
		{
			new dir[256];
			dir = strtok(cmdtext, idx);
			if (strlen(dir) && strcmp(dir, dUser(PlayerName(playerid)).("password"), true) == 0)
		{
			logged[playerid] = 1;
			new score = dUserINT(PlayerName(playerid)).("goalsscored");
			SetPlayerScore(playerid,score);

			SendClientMessage(playerid, COLOR_RED, "Successfully Logged in!");
		}
	}
		else SendClientMessage(playerid, COLOR_RED, "Login error!");
		return 1;
	}
Reply
#2

can you show us the server log?
Anything in there?

also, did you register, and does the file exist?

I don't know dudb, but did you create all the folders you needed? (if needed)
Reply
#3

where i must to create the folders and with name ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)