15.08.2015, 17:44
Hello! Could you tell me please how can I find a player SELCT ID of a dialogue?
I tried something like:
I tried something like:
PHP код:
format( szQuery, sizeof( szQuery ), "SELECT * FROM `users` WHERE `Clan` = '%d'", PlayerInfo[playerid][pClan] );
new Cache: result = mysql_query( mysql, szQuery );
for ( new i, j = cache_get_row_count ( ); i != j; ++i )
{
cache_get_field_content( i, "Username", szName ); format( string, 300, szName );
format(Selected[Players][snume], MAX_PLAYER_NAME, szName);
format(sName[playerid], MAX_PLAYER_NAME, Selected[Players][snume]);
Players ++;
}
cache_delete( result );
ShowPlayerDialog(playerid, DIALOG_CLAN2, DIALOG_STYLE_LIST, "Clan Members:", szDialog, "Select", "Back" );
and
case DIALOG_CLAN2:
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, -1, "Click: %s", sName[playerid]);
}
}
}