02.04.2011, 04:17
Lets see..well first of all there should be no comma after the login slot in the array
Secondly, As far as i know..It wouldn't work with that loop as its attempting to use integers in which the array slots being used are defined differently. But like i said there might be a way that i don't know of but i don't think it works that way..
I tried a different way shown here(Note: I tested it this way because its the only way i can on this computer, but its not the best way either):
Outcome:
I'm sorry if i can't help you get the result you wanted..hope you find out how
Secondly, As far as i know..It wouldn't work with that loop as its attempting to use integers in which the array slots being used are defined differently. But like i said there might be a way that i don't know of but i don't think it works that way..
I tried a different way shown here(Note: I tested it this way because its the only way i can on this computer, but its not the best way either):
pawn Код:
new bool:FreezeInfo[MAX_PLAYERS][3];
main()
{
for(new i=0;i<sizeof(FreezeInfo);i++)
{
FreezeInfo[1][i] = 1;
printf("TRUE %d | %d", i, FreezeInfo[1][i]);
FreezeInfo[1][i] = 0;
printf("FALSE %d | %d", i, FreezeInfo[1][i]);
}
}
Код:
TRUE 0 | 1 FALSE 0 | 0 TRUE 1 | 1 FALSE 1 | 0 TRUE 2 | 1 FALSE 2 | 0