29.11.2014, 20:44
Hello
i have problem when i compile this :
mysql R39-2
Errors :
(2728
(27291)
i have problem when i compile this :
mysql R39-2
pawn Код:
CMD:cmembers(playerid, params[])
{
if(playerVariables[playerid][pClan] >= 1 && playerVariables[playerid][pClanRank] >= 6)
{
new aim[1500];
format(aim, 256,"{FFB300}%s members:{FFFFFF} \n",clanVariables[playerVariables[playerid][pClan]][cClanName]);
new test[256];
new query[256];
new stringg[256];
new memid;
mysql_format(handle, stringg, sizeof(stringg), "SELECT playerName, playerClanRank FROM playeraccounts WHERE playerClan = %d ORDER BY playerClanRank DESC LIMIT 50",playerVariables[playerid][pClan]);
mysql_query(handle, query);
mysql_format(handle, stringg, sizeof(stringg), "SELECT playerClanRank FROM playeraccounts WHERE playerClan = %d",playerVariables[playerid][pClan]);
new Cache: result12 = mysql_query (handle, stringg);
for ( new i, j = cache_get_row_count ( ); i != j; ++i )
{
cache_get_field_content(query, "playerName");
format(Selected[memid][snume],24, query);
cache_get_field_content(test, "playerClanRank");
Selected[memid][srank] = strval(test);
format(aim, sizeof(aim), "%s %s - Rank: %s \n", aim, query, test);
}
cache_delete(result12);
ShowPlayerDialog(playerid,DIALOG_CMEMBERS,DIALOG_STYLE_LIST,"Members in clan",aim,"Go","Cancel");
}
}
Код:
(27288) : error 035: argument type mismatch (argument 1) (27291) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
pawn Код:
cache_get_field_content(query, "playerName");
pawn Код:
cache_get_field_content(test, "playerClanRank");