25.06.2013, 14:20
Hi I added a system that when a new admin is made that it will open the dialog and he/she can select their admin name. There is the error 039: constant symbol has no size error on the dialog response code
pawn Код:
else if(dialogid == DIALOG_ANAME) {
if(!response) ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
else
{
new
szString[100];
if(isnull(inputtext))
return ShowPlayerDialog(playerid, 2818, DIALOG_STYLE_INPUT, "Admin Name - Create", "Please enter your desired admin name in the box below.", "Submit", "");
format(PlayerInfo[playerid][pAdminName], sizeof(pAdminName), "%s", inputtext);
format(szString, sizeof(szString), "You have set your admin name to %s.", PlayerInfo[playerid][pAdminName]);
SendClientMessage(playerid, -1, szString);
}
}