07.07.2015, 00:39
(
Последний раз редактировалось kloning1; 07.07.2015 в 05:11.
)
hi, i create mysql rank , but missmatch?
where iam wrong?
where iam wrong?
pawn Код:
case DIALOG_HEADMODERATOR: // kredit to justin
{
if(response)
{
switch(listitem)
{
case 0:
{ // top kill
new query[256];
mysql_format(mysql, query, sizeof(query), "SELECT `Username`, `pKills` FROM `zmusers` ORDER BY `pKills` DESC LIMIT 10");
mysql_tquery(mysql, query);
new rows,fields;
cache_get_data(rows,fields,mysql);
if(rows > 0)
{
new string[64],name[24],kil;
for(new row = 0; row < rows; row++)
{
cache_get_row(row,0,name,mysql,MAX_PLAYER_NAME);
cache_get_row(row,1,kil); // error in here "error 035: argument type mismatch (argument 3)"
format(string,sizeof(string),"#%d: %s with %d Kill!",(row+1),name,kil); // #%d row table (1-10), %s // name, %d // rank (contoh aja exp)
}
ShowPlayerDialog(playerid, DIALOG_MODERATOR, DIALOG_STYLE_INPUT, "Top Kills", string, "Close", "");
}
}