ok , i have this menu.
Code:
public Handled(Handle:db, Handle:hQuery, const String:error[], any:client)
{
if(hQuery == INVALID_HANDLE) {
LogError("Query failed: %s", error);
return;
}
new Handle:menu = CreateMenu(MenuHandler1);
SetMenuTitle(menu, "Top Mejores Kills - by Luqqas'");
decl String:ggBuffer[256]
new i = 0
decl String:Buffer[256]
decl String:Name[33]
while( SQL_FetchRow(hQuery) )
{
SQL_FetchString(db, 1, Name, 355)
FormatEx(Buffer, 255, "%s - %d", Name, SQL_FetchInt(hQuery, 3) );
FormatEx(ggBuffer, sizeof(ggBuffer) , "option%d", i)
AddMenuItem(menu, ggBuffer, Buffer);
SQL_FetchRow(hQuery);
}
SetMenuExitButton(menu, true);
DisplayMenu(menu, client, 20);
CloseHandle(hQuery);
}
Why isn't working ? Can any says me what i'm wrong ?
PS : I try to copy the same code from a plugin that i made in AMX.
__________________