04.07.2014, 17:52
Hello,
I wanna undersand this error:
That's correct, so how use in my array a variable, because that pawn code, i've a error!
How i can do?
Thanks
I wanna undersand this error:
Quote:
error 008: must be a constant expression; assumed zero |
pawn Код:
main()
{
Add({3, 5, 2}, 3);
}
Add(arr[], size)
{
for(new i; i < size; i++)
{
printf("%i", arr[i]);
}
}
Код HTML:
error 008: must be a constant expression; assumed zero
pawn Код:
main()
{
new playerone = 5, playertwo = 6;
Add({playerone, playertwo}, 2);
}
Add(arr[], size)
{
for(new i; i < size; i++)
{
printf("%i", arr[i]);
}
}
Thanks