Jump to content
  • 0

Warning 202: number of arguments does not match definition


SebastianAdv

Question

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");
		}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0
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! ❤️

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.