02.04.2011, 12:47
Code:
if(dialogid == 30) { if(response) { switch(listitem) { case 0: { new q[128],s[32],ss[128],m; format(q,128,"SELECT * FROM omem WHERE org=%d",org[playerid]); mysql_query(q); mysql_store_result();/* for(new i=mysql_retrieve_row();i<10;i++) { new field[5][32]; mysql_fetch_row_format(q,"|"); explode(q,field,"|"); format(mem[m],32,"%s",field[1]); m++; }*/ mysql_free_result(); format(s,32,"%s:",oname[playerid]); /*format(ss,128,"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",mem[0],mem[1],mem[2],mem[3],mem[4],mem[5],mem[6],mem[7],mem[8],mem[9]); ShowPlayerDialog(playerid,31,DIALOG_STYLE_LIST,s,ss,"Ok","Cancel");*/ } case 1: { cmd_resign(playerid,""); } } } }