Login Dialog problem - dialog too small
#1

Hi all, I made in script :

Code:
			new loginstring[128];
			new loginname[128];
//		    new string[128];
			new stringtext[120];
			GetPlayerName(playerid, loginname, sizeof(loginname));
		format(stringtext,sizeof(stringtext),"SERVER: Pozdrav %s - Dobrodoљao/la na World Of Balkan RPG/DM SA:MP server.", loginname);
			SendClientMessage(playerid, COLOR_ORANGE, stringtext);
			SendClientMessage(playerid, COLOR_ORANGE, "SERVER: Ovo ime je registrano. Molimo logirajte se i zabavite se na serveru.");
			SendClientMessage(playerid, TEAM_GROVE_COLOR, "SERVER: Koristite /help ako ste novi ili ako ne znate komande.");
			GetPlayerName(playerid,loginname,sizeof(loginname));
			format(loginstring,sizeof(loginstring),"{F2B130}•••••••••••••••••••••••••••••••••••••••••••••••••••••\n{FFFFFF}Da biste igrali na naљem serveru morate se prijaviti.\n Ukucajte vaљu lozinku u prazno polje.");
			ShowPlayerDialog(playerid,19,DIALOG_STYLE_PASSWORD,"KORISNIČKI RAČUN - LOGIRANJE",loginstring,"Ulaz","Izlaz");
	}
But it wont show me the whole sentence, it show me only first to letters of "Ukucajte vaљu lozinku u prazno polje".

Please help, dialog is too small, and almost nothing I can't put it in dialog. Sory for bad English.
Reply
#2

Change
Code:
new loginstring[128];
to
Code:
new loginstring[1024];
Reply
#3

Quote:
Originally Posted by admigo
View Post
Change
Code:
new loginstring[128];
to
Code:
new loginstring[1024];
Or count the length of the string and then have the "loginstring[size]" at the exact length to save file size.
Reply
#4

Ty, it works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)