29.03.2015, 10:26
-bump-
by the way I've converted the code, and I want this to be checked
by the way I've converted the code, and I want this to be checked
pawn Код:
createClanDialog(playerid)
{
new content[975];
new Clan[7],score;
new query[80],string[10];
new rows, fields;
cache_get_data(rows, fields, mysql);
mysql_format(mysql,query,sizeof(query),"SELECT `Clan`,`Clanscore` FROM `clans` ORDER BY `Clanscore` DESC LIMIT 30");
mysql_tquery(mysql,query,"","");
if(cache_num_rows(mysql) > 0)
{
while(cache_get_row(0,0,string))
{
sscanf(string,"p<|>s[7]i",Clan,score);
format(content,sizeof(content),"%s%s\t\t%d Score\n",content,Clan,score);
}
}
else if(AdminLevel{playerid} < 4) return SendLangMessage(playerid, _COLOR_RED, "Es gibt keine Clans!","There are no Clans!","No hay clanes!");
if(AdminLevel{playerid} >= 4)
{
switch(Sprache[playerid])
{
case 0: format(content, sizeof(content), "%sClan hinzufen\n", content);
case 1: format(content, sizeof(content), "%sAdd Clan\n", content);
case 2: format(content, sizeof(content), "%sAgregar clan\n", content);
}
}
switch(Sprache[playerid])
{
case 0: ShowPlayerDialog(playerid,2001,DIALOG_STYLE_LIST,"Clan Liste",content,"Akzeptieren", "Abbruch");
case 1: ShowPlayerDialog(playerid,2001,DIALOG_STYLE_LIST,"Clan List",content,"Accept", "Cancel");
case 2: ShowPlayerDialog(playerid,2001,DIALOG_STYLE_LIST,"Lista del clan",content,"Aceptar","Cerrar");
}
return 1;
}