Dialog Cmd problem
#1

Hello all , i get this error in my command Banlist
Код:
CMD:banlist(playerid, params[])
{
    if(PlayerInfo[playerid][Level] >= 4)
    {
	    new ID, Query[256],string[135], DBResult: result;
		format(Query, sizeof(Query), "SELECT * FROM BANNED");
		result = db_query(bans, Query);
		ID = db_num_rows(result);
		db_free_result(result);
		format(string, sizeof(string), "%s\t      Ban List\n\n{FC4949}Banned Accounts:{FFFFFF} %d\n{FC4949}Permanent Bans: {FFFFFF}%d\n", string,ID,ID);
	 	ShowPlayerDialog( playerid, DIALOG_BANLIST, DIALOG_STYLE_INPUT, "Ban List",string, "Search", "Close" );
	    CMDMessageToAdmins(playerid,"BANLIST");
	    string = "\0", Query = "\0";
    }
	return 1;
}
The Dialog close when i put a name in the Cmd
Reply


Messages In This Thread
Dialog Cmd problem - by NitroZeth - 07.08.2017, 07:24
Re: Dialog Cmd problem - by Kane - 07.08.2017, 07:26
Re: Dialog Cmd problem - by BrnX - 07.08.2017, 07:28
Re: Dialog Cmd problem - by NitroZeth - 07.08.2017, 07:30
Re: Dialog Cmd problem - by Kane - 07.08.2017, 07:39
Re: Dialog Cmd problem - by NitroZeth - 07.08.2017, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)