new var = MyFunc(...)?
#6

"scripting god" lmao, ok dude I'm in a good mood so I'll give you an example:

pawn Код:
// used to track the amount of zones created and to pass the current ID back out of the custom function
new iZoneCount = -1;

// used to store the coordinates of your created zones, the slot of the array is it's ID (the first dimension)
new Float:fGangZonesCoords[ >>AMOUNT_HERE<< ][ 4 ];


//in your custom create zone function CreateZone( Float:min_x, Float:max_x, ...................

  iZoneCount ++; // increment by one (move to the next zonescoords array slot)
  fGangZonesCoords[ iZoneCount ][ 0 ] = min_x; // pass the values to the array
  //do this for all four
  return iZoneCount; //return the current slot being used, the zones id (the slot in the array)
Reply


Messages In This Thread
new var = MyFunc(...)? - by Remi-X - 11.08.2009, 23:14
Re: new var = MyFunc(...)? - by paytas - 11.08.2009, 23:47
Re: new var = MyFunc(...)? - by Remi-X - 12.08.2009, 08:46
Re: new var = MyFunc(...)? - by Donny_k - 12.08.2009, 08:51
Re: new var = MyFunc(...)? - by Remi-X - 12.08.2009, 08:52
Re: new var = MyFunc(...)? - by Donny_k - 12.08.2009, 09:16
Re: new var = MyFunc(...)? - by James_Alex - 12.08.2009, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)