Jump to content
  • 0

argument type mismatch


GEORGIKAA

Question

salut, recent am incercat sa creez un gm de la 0 cu niste chestii noi, precum easyDialogs. am intampinat acum o problema la dialog_register si nu ma prind care-i schema, ce am gresit aici

D:\server\pawno\include\easyDialog.inc(95) : error 035: argument type mismatch (argument 4)
D:\server\pawno\include\easyDialog.inc(99) : error 035: argument type mismatch (argument 4)

if(strlen(inputtext) < 8 || strlen(inputtext) > 64)
		return Dialog_Show(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", "Invalid characters lenght (8-64). Type again a valid password", "Register", "Quit");

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
if(!strlen(inputtext) || strlen(inputtext) < 6 || strlen(inputtext) > 24) {
	
 	static const fmt_str[] = "\n\n%s\n\nInvalid characters lenght (6-24). Type again a valid password\n\n";
	new string[sizeof fmt_str + (-2 + MAX_PLAYER_NAME)];
	format(string, sizeof string, fmt_str, GetPlayerName(playerid));
	ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", string, "Register","Quit");
}


Uite cum e corect + iti dau o metoda mai buna, mai optimizata sa ii zic asa

Edited by Khain Developer
Link to comment
Share on other sites

  • 0
Acum 5 ore, Khain Developer a spus:

if(!strlen(inputtext) || strlen(inputtext) < 6 || strlen(inputtext) > 24) {
	
 	static const fmt_str[] = "\n\n%s\n\nInvalid characters lenght (6-24). Type again a valid password\n\n";
	new string[sizeof fmt_str + (-2 + MAX_PLAYER_NAME)];
	format(string, sizeof string, fmt_str, GetPlayerName(playerid));
	ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", string, "Register","Quit");
}


Uite cum e corect + iti dau o metoda mai buna, mai optimizata sa ii zic asa

sincer sa fiu, vreau sa incerc ceva nou precum easyDialog, vreau doar sa stiu ce e gresit acolo pt ca nu ma prind

+ de optimizat nu o sa ma ocup, e un gamemode facut doar pt mine, lucrez la el doar cand ma plictisesc

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.