error 033: array must be indexed (variable "scorevariable")
#1

Hi i have ran into a problem where i get this error, and dont seem to know a way how to fix it. Heres the script:

pawn Код:
if(dialogid == 20009)
    {
        if(response)
        {
        if(listitem == 0)
   {
    new Cache:result = mysql_query(mysql, "SELECT Vardas,Nuzudymai FROM vartotojai ORDER BY Nuzudymai DESC LIMIT 10");


    new
    ID,
    output[812];

    for(new i, j = 10; i < j; i++) // loop through all the rows that were found
    {
   
        ID ++;
       
        new
            username[24],
            scorevariable[10];
           
        cache_get_field_content(i, "Vardas", username, mysql, 129);
        scorevariable = cache_get_row_int(i, 0, mysql); //line of error
        format(output, sizeof(output), "{9999CC}%s%d. {96CBCB}%s {9999CC}» {C0C0C0}%d {9999CC}nuzudymai.\n", output, ID, username);//, strval(scorevariable));
    }
    cache_delete(result);

    ShowPlayerDialog(playerid, 822, DIALOG_STYLE_MSGBOX, "{A3E4FF}Top 10", output, "Gerai", "");

       }
Do you guys know what the problem with this is?
Reply


Messages In This Thread
error 033: array must be indexed (variable "scorevariable") - by Type-R - 16.09.2014, 02:17
Re: error 033: array must be indexed (variable "scorevariable") - by Flake. - 16.09.2014, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)