Is this even possible?
#1

Hello, I just find out why something was not working and it's wierd.

Here it is:
pawn Код:
printf("%d",slot); //returns 0
        printf("%d cars selected",rows); //returns 5
        for(new id = 0; id < rows; id++)
        {
            printf("%d",slot); //returns 0
            cache_get_field_content(id, "ID", data[0]);
            cache_get_field_content(id, "MAP", data[1]);
            cache_get_field_content(id, "TYPE", data[2]);
            cache_get_field_content(id, "OWNER_ID", data[3]);
            cache_get_field_content(id, "MODEL", data[4]);
            cache_get_field_content(id, "PERMISSION", data[5]);
            cache_get_field_content(id, "COMPONENTS", data[6]);
            cache_get_field_content(id, "COLOR_ONE", data[7]);
            cache_get_field_content(id, "COLOR_TWO", data[8]);
            cache_get_field_content(id, "POSITION", data[9]);
            cache_get_field_content(id, "RESPAWN", data[10]);
            cache_get_field_content(id, "LABEL", data[11]);
            cache_get_field_content(id, "INFO", data[12]);
            printf("%d",slot); //returns 44 scary?
This is just a small part of a function
The thing is, after the forloop line it becomes 44...
But it should stay on 0.
This is just no logical reason that this changes, somebody can help me?
Reply


Messages In This Thread
Is this even possible? - by Roel - 17.01.2013, 18:34
Re: Is this even possible? - by azzerking - 17.01.2013, 18:40
Re: Is this even possible? - by Roel - 17.01.2013, 18:51
Re: Is this even possible? - by azzerking - 17.01.2013, 18:55
Re: Is this even possible? - by Roel - 17.01.2013, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)