Help in /register and /login Command
#1

Guys, I used <dini> I followed rebel son's tutorial https://sampforum.blast.hk/showthread.php?tid=154852. But, there's a lot of error.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

	
{
  new file[128], pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(file, sizeof(file), "\\Users\\%s.ini", pname);
  if(!strlen) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: /register [password]");
  if(dini_Exists(file)) return SendClientMessage(playerid, COLOR_RED, "[SYSTEM]: You are already registered!");
  dini_Create(file);
  dini_IntSet(file, "hashPW",);
  dini_Set(file, "password",);
  dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][AdminLevel] = 0);
  dini_IntSet(file, "score", PlayerInfo[playerid][score] = 0);
  dini_IntSet(file, "money", PlayerInfo[playerid][cash] = 500);
  new string[128];
  format(string, 128, "[SYSTEM]: You succesfully registered the nickname %s with password %s", pname, params);
  SendClientMessage(playerid, COLOR_YELLOW, string);
  logged[playerid] = 1;
  SendClientMessage(playerid, COLOR_YELLOW, "[SYSTEM]: You have been automatically logged in!");
  return 1;}
	return 0;
}
But there's errors, look at this

Код:
undefined symbol "dcmd_register"
undefined symbol "params"
undefined symbol "udb_hash"
undefined symbol "params"
undefined symbol "params"
when I put, <dub> it shows the error:

Код:
fatal error 100: cannot read from file: "dubd"
Reply
#2

Quote:

fatal error 100: cannot read from file: "dubd"

Means, it cannot access the file.
Are you sure its in the right spot/installed correctly?

Quote:

Fatal Errors
100 cannot read from le: lename
The compiler cannot nd the specied le or does not have access to it.

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)