function that will return two integers
#1

Hi i need a function that can return two integers...it can be stock,public or whatever..i dont care

I have idea to fetch integers and return a string and than split them but maybe there is more simple solution about these...anyone have idea how to make these?
Reply
#2

You could return an array with two dimensions.

pawn Код:
stock returnInts(int1, int2) {
   new
      aInts[2];

   aInts[0] = int1;
   aInts[1] = int2;

   return aInts;
}
Reply
#3

Gonna try it now
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)