Help With Arrays
#1

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:

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}
Thanks for any help
Reply


Messages In This Thread
Help With Arrays - by StrickenKid - 01.10.2009, 01:57
Re: Help With Arrays - by StrickenKid - 01.10.2009, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)