08.06.2010, 20:13
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?
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; }