Jump to content
  • 0

Warning 202: number of arguments does not match definition


Question

Posted

La auto-complete imi scrie "cache_get_row_count(destination)", dar sunt nou si nu am idee ce semnifica acel "destination"

Multumesc.

"warning 202: number of arguments does not match definition"

		case DIALOG_EMAIL: {
			if(!response) return Kick(playerid);
			if(!IsAValidEmail(inputtext)) {
				SendClientMessage(playerid, COLOR_WHITE, "Email invalid!");
				format(PString, sizeof(PString), "%s", (PlayerInfo[playerid][pLanguage] == 0) ? ("Acum trebuie sa-ti alegi un email."):("Please enter a email for your account."));
				return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "EMAIL STAGE", PString, "Next", "Exit");
			}
			format(PString, sizeof(PString),"SELECT * FROM `users` WHERE `Email` = '%s'",inputtext);
			new Cache: result = mysql_query(g_SQL, PString);
			if(cache_get_row_count() > 0) // ================================ WARNINGUL SE AFLA LA ACEASTA LINIE ================================
			{
				cache_delete(result);
				SendClientMessage(playerid, COLOR_WHITE, "Email invalid!");
				format(PString, sizeof(PString), "%s", (PlayerInfo[playerid][pLanguage] == 0) ? ("Acum trebuie sa-ti alegi un email."):("Please enter a email for your account."));
				SendClientMessage(playerid, COLOR_WHITE, "*Acel email este deja folosit. / This email is already used.");
				return ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT, "EMAIL STAGE", PString, "Next", "Exit");
			}
			cache_delete(result);
			SendClientMessage(playerid, COLOR_WHITE, "Inregistrarea a luat sfarsit.");
			PlayerInfo[playerid][pMoney]=20000; Update(playerid, pMoneyx);
			PlayerInfo[playerid][pLevel]=1;		Update(playerid, pLevelx);
			PlayerInfo[playerid][pSkin]=15;		Update(playerid, pSkinx);
			ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "LOGIN STAGE:", "Please enter your choosen password.\nTe rugam sa-ti introduci parola", "Enter", "Exit");
		}

 

2 answers to this question

Recommended Posts

  • 0
Posted

Acel destination semnifica variabila in care vrei sa stochezi aceea informatie. In exemplul tau functia respectiva nu returneaza prin valoare ci prin referinta(adica are nevoie de o variabila in care sa puna respectivele date)

Rezolvarea e simpla: 

new rows;

cache_get_row_count(rows);

if(rows > 0)

Sau poti folosi cache_num_rows inloc de aia

  • Thanks 1
  • 0
Posted
8 hours ago, Banditul said:

Acel destination semnifica variabila in care vrei sa stochezi aceea informatie. In exemplul tau functia respectiva nu returneaza prin valoare ci prin referinta(adica are nevoie de o variabila in care sa puna respectivele date)

Rezolvarea e simpla: 

new rows;

cache_get_row_count(rows);

if(rows > 0)

Sau poti folosi cache_num_rows inloc de aia

Multumesc mult! ❤️

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.