Jump to content

Question

Posted

Problemă întâlnită (descriere): Nu imi inregistreaza conturile 
Ero(area / rile) / warning-(ul / urile): Nu le gasesc
Liniile de cod / sursa / script-ul: 

		if(dialogid == 12345)
		{
		    if(!response)
            {
                Kick(playerid);
                return 1;
            }
		    if(strlen(inputtext))
		    {
				GetPlayerName(playerid, sendername, sizeof(sendername));
				new sqlaccountexists = MySQLCheckAccount(sendername);
				if (sqlaccountexists != 0)
				{
				    SendClientMessage(playerid, COLOR_YELLOW, "Acest nume este deja luat, te rog alege altul.");
					return 1;
				}
				new tmppass[64];
				//if(strfind(inputtext, "|", true) != -1)
				new ok = 1;
				for(new i=0;i<strlen(inputtext);i++)
				{
				    if(!IsALetter(inputtext))
				        ok = 0;
				}
				if(ok == 0)
				{
				    gPlayerAccount[playerid] = 0;
		 			new regstring[128];
					new regname[64];
				    GetPlayerName(playerid,regname,sizeof(regname));
					format(regstring,sizeof(regstring),"Bine ai venit, %snNu ai cont.nTe rog inregistreaza-te:",regname);
					ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");
				}
				else
				{
					strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
					OnPlayerRegister(playerid,tmppass);
				}
			}
			else
			{
 				new regstring[128];
				new regname[64];
				GetPlayerName(playerid,regname,sizeof(regname));
				format(regstring,sizeof(regstring),"Bine ai venit, %snNu Ai Cont.nTe Rog Inregistreaza-te:",regname);
				ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");

Imagini / Video (optional):
Aţi încercat să rezolvaţi singur?: Am incercat sa bag alt dialog cu login dupa ce ma inregistrez pe asta care l-am bagat imi apare tot ala dinainte si nu ma lasa

13 answers to this question

Recommended Posts

  • Administrator
Posted

Poate nu se conecteaza la MySQL si nu poate sa le insereze, ce spune in log-ul de la MySQL?

Posted
[19:04:21] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)

[19:04:21] >> mysql_query( Connection handle: 1 )

[19:04:21] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)

[19:04:21] >> mysql_real_escape_string( Connection handle: 1 )

  • Administrator
Posted

Nu se conecteaza, cei care au facut conectarea la MySQL n-au facut-o bine, daca gamemode-ul este luat de pe net, daca nu tu n-ai facut-o bine.

 

Arata-ne cum se conecteaza la MySQL.

Posted

No bun,lasa baza de date in bara,dupa care porneste serverul si intra in joc,vezi daca face la fel.

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.