Does not appear to command dialog
#1

Does not appear to command dialog /showstaffactivity.
Код:
//========================================[CMD /SHOWSTAFFACTIVITY]============================================//
CMD:showstaffactivity(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new jucator;
        new Query[96];
        if(sscanf(params, "u", jucator)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /showstaffactivity [PlayerID/PartOfName]");
		format(Query, sizeof(Query), "SELECT * FROM `logExecCmds` WHERE `Player` = '%i' LIMIT 10", PlayerInfo[jucator][pSQLID]);
	    mysql_query(Query);
	    new Result[2][65], Text[256]; // 256 e cam mare, dar nu stiu cat de lungi sunt comenzile tale si am zis sa fiu sigur.
		mysql_store_result();
		while(mysql_retrieve_row())
		{
   	 	mysql_fetch_field_row(Result[0], "Command");
    	mysql_fetch_field_row(Result[1], "ECount");
	    format(Text, sizeof(Text), "%s\n%s - %i ori", Text, Result[0], Result[1]);
	    }
		mysql_free_result();
		new str[255+1], players[MAX_PLAYER_NAME];
        GetPlayerName(jucator, players, sizeof(players));
        format(str, sizeof(str), "{FFFFFF}Activitatea lui %s", players);
		ShowPlayerDialog(playerid, 9, DIALOG_STYLE_MSGBOX, str, Text,"Close","");
	   			}
    return 1;
}
Reply
#2

Upppp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)