Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Question

Posted

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

 

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
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
  • 0
Posted
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

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