EASY_MYSQL staff dialogs
#1

Help me please.

Код:
CMD:team(playerid,params[])
{
	new nick[24],hodn[24], omluv, st;

	new countid = SQL::CountRows(""ADMIN_TABLE"");
    for(new id=0;id<countid;id++)
    {
        if(SQL::RowExists(""ADMIN_TABLE"", "id", id))
        {
  			new handle = SQL::Open(SQL::READ, ""ADMIN_TABLE"", "id", id);
  			SQL::ReadString(handle, "jmeno", nick,24);
  			SQL::ReadString(handle, "hodnost", hodn,24);
			SQL::ReadInt(handle, "omluvenka", omluv);
			SQL::ReadInt(handle, "stav", st);
			SQL::Close(handle);
		}
    }
	format(MAX_STR,sizeof(MAX_STR),"%sNick\tFunkce\tOmluvenka\tStav\n",MAX_STR);
	format(MAX_STR,sizeof(MAX_STR),"%s%s\t%s\t%d\t%d\n",MAX_STR,nick,hodn,omluv,st);
	ShowPlayerDialog(playerid,DIALOG_ATEAM,DIALOG_STYLE_TABLIST_HEADERS,"Administračnн Team",MAX_STR,"Zavřнt","");
	return 1;
}
Reply


Messages In This Thread
EASY_MYSQL staff dialogs - by TomasKuzel - 11.12.2018, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)