SA-MP Forums Archive
function that will return two integers - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: function that will return two integers (/showthread.php?tid=262356)



function that will return two integers - DRIFT_HUNTER - 17.06.2011

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?


Re: function that will return two integers - Calgon - 17.06.2011

You could return an array with two dimensions.

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

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

   return aInts;
}



Re: function that will return two integers - DRIFT_HUNTER - 17.06.2011

Gonna try it now