11.02.2011, 10:41
pawn Код:
if(dialogid == 28)
{
ShowPlayerDialog(playerid, 29,DIALOG_STYLE_MSGBOX,"Members",LoadMem(playerid),"Ok","Cancel");
}
LoadMem(playerid)
{
new q[128];
format(q,128,"SELECT * FROM ostats WHERE org=%d",org[playerid]); // shouldn't you only select Name or sth?
mysql_query(q);
mysql_store_result();
new s[256],field[3][32];
new idx=0;
while(mysql_fetch_row_format(q,"|")
{
idx++;
explode(q, field, "|");
if(idx==1) format(s,256,"%s",field[1]);
else format(s,256,"%s\n%s",s,field[1]);
}
return s;
}