10.05.2014, 09:27
Hello.
How i can do, when i am clink in a player-s name show another dialog where i can remove him/her to the faction?
How i can do, when i am clink in a player-s name show another dialog where i can remove him/her to the faction?
PHP Code:
Dialog:LeaderAlkalmazottak(playerid, response, listitem, inputtext[])
{
new string[128],dialogstr[3000];
strcat(dialogstr,string);
if(response)
{
switch(listitem)
{
case 0:
{
new userstring[300] = "Alkalmazottak:\n";
format(query, sizeof(query), "SELECT nev FROM users WHERE frakcio = %d",PlayerInfo[playerid][pFrakcio]);
mysql_query(sqldb, query);
mysql_store_result();
while(mysql_retrieve_row())
{
mysql_fetch_field_row(query, "nev");
format(userstring, sizeof(userstring), "%s %s \n", userstring, query);
}
mysql_free_result();
Dialog_Show(playerid, LeaderAlkalmazottak, DIALOG_STYLE_LIST, "Alkalmazottak kezelйse", userstring, "Ok", "Mйgsem");
}
case 1-50:
{
Dialog_Show(playerid, LeaderAlkalmazottak1, DIALOG_STYLE_LIST, "Alkalmazottak kezelйse", "Elbocsбjtбs\nFelfokozбs\nLefokozбs", "Ok", "Mйgsem");
}
}
}
return 1;
}