cmd /login - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: cmd /login (
/showthread.php?tid=369011)
cmd /login -
srcka< - 15.08.2012
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;
}
Re: cmd /login -
Jstylezzz - 15.08.2012
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)
Re: cmd /login -
srcka< - 15.08.2012
where i must to create the folders and with name ?