Not reading file?
#1

Код:
public OnPlayerSpawn(playerid)
{
	if(dini_Exists(udb_encode(playername)))
	{
	  if(logged[playerid] == 0)
	  {
			SendClientMessage(playerid, COLOR_RED, "Your account has been detected in our database. Use /login [password] to log in!");
		}
  }
  else if(!dini_Exists(udb_encode(playername)))
	{
 		SendClientMessage(playerid, COLOR_RED, "You are not registered! Use /register [password]");
  }
  return 1;
}
My account in my server is registered but the message always comes up saying that im not?
Am I doing something wrong?

If I do /login it still works tho.
Reply
#2

This won't be that useful, but there was a mega thread discussion around DracoBlue's dini, you really should use the fexist() instead of dini_Exists().
Reply
#3

Where is in this public GetPlayerName?
Код:
public OnPlayerSpawn(playerid)
{
new playername[24];
GetPlayerName(playerid,playername,24);
if(dini_Exists(udb_encode(playername)))
bla bla
Reply
#4

oh i guess i rlly didnt think of that :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)