Bug, system of connection
#1

Evening,

I got a bug very weird.
A friend of mine installed a connection system (Dialogs, login and register)
A dialog is showed (login) if the player already has its account registered, otherwise it's the 'register' one
A friend of mine is able to get online, and the dialog appears (When he has an account, so login dialog)
However, I created an account, but when I'm re-loading my GTA (re-connect), there is still that dialog to register, even if the account is already created. I put my password, and it says it's already registered.
But it works very well on my friend's server

Any ideas?

Код:
public OnPlayerConnect (playerid) ...
....
	GetPlayerName(playerid, plname, sizeof(plname));
	format(string, sizeof(string), "users/%s.ini", plname);
	SendClientMessage(playerid, COLOR_YELLOW2, "Chargement de vos donnйes...");
	if(fexist(string))
	{
		SetTimerEx("LOGINSYS",2500,0,"i",playerid);
		SendClientMessage(playerid, COLOR_YELLOW2, "Utilisez la fenкtre pour vous connectй avec votre compte.");

	}
	else
	{
		SetTimerEx("REGISTERSYS",2500,0,"i",playerid);
    SendClientMessage(playerid, COLOR_YELLOW2, "Utilisez la fenкtre pour enregistrer votre compte.");
	}
.....

forward LOGINSYS(playerid);
public LOGINSYS(playerid)
{
	new name[MAX_PLAYER_NAME];//variable pseudo
  GetPlayerName(playerid,name,sizeof(name));//on retient le pseudo
  new loginmsg[256];//variable pour le format
  format(loginmsg,256,"Bienvenue sur le serveur .\n\nDerniиre mise а jour le 08/06/10 :\n\n\nCompte: %s\n\nEntrer le mot de passe :",name);// le tableau qu'on va afficher
  ShowPlayerDialog(playerid,LOGDIA,DIALOG_STYLE_INPUT,"Login",loginmsg,"Login","Annuler");//creation du tableau
  return 1;
}
forward REGISTERSYS(playerid);
public REGISTERSYS(playerid)
{
	new name[MAX_PLAYER_NAME];//variable pseudo
 	GetPlayerName(playerid,name,sizeof(name));//on retient le pseudo
 	new registermsg[256];//variable pour le format
 	format(registermsg,256,"Bienvenue sur le serveur .\n\nS'il vous plaоt, fournissez nous les documents nйcйssaire\npour rejoindre la piste.\n\nPseudo: %s\n\nEntrer le mot de passe :",name);// le tableau qu'on va afficher
 	ShowPlayerDialog(playerid,REGDIA,DIALOG_STYLE_INPUT,"Enregistre",registermsg,"Enregistre","Annuler");//creation du tableau
 	return 1;
}
Reply
#2

Sry, I donґt understand nothing what you say.
Try to use ****** Translation or just think abit how you write your problem.
Reply
#3

When I connect when I have an account, its myself out the window 'REGISTERSYS' gold I have an account.
While my friends to test his home and his work ('LOGINSYS') when I copy paste my server.
Reply
#4

What's your main language?
Reply
#5

French :S but the forum Franзais/French is not active
Reply
#6

K, I'm french too. Re-write it in the french section and I'll try to help you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)