01.10.2009, 01:57
I'm trying set the vars of an array with a function but its not working, i just get errors, anyone know you this is done?
Ex:
Thanks for any help
Ex:
pawn Code:
new myArray[] = { 200, 300, 400 };
myFunction(p)
{
myArray[] = { p*100, p*200, p*300 };
return 1;
}
//so if i do:
myFunction(10)
myArray would equal {1000, 2000, 3000}