Home   Help Search Login Register  

Author Topic: Add a function section  (Read 847 times)

0 Members and 1 Guest are viewing this topic.

Offline uiox

  • Contributing Member
  • **
Add a function section
« on: 04 Jan 2003, 19:48:37 »
I'm very, very, lazy and if something has been done I prefer take it.

First one :

In init.sqs

GridCoordFunction = preprocessFile  "GridCoord.sqf"

array call  GridCoordFunction

Operand types:
    array: Array
   
Compatibility:
    Version 1.85 required.

Type of returned value:
    String

Description:
    Return the position with the format "Aa81"

Example:
    _GridString = getpos player call GridCoordFunction


Offline snYpir

  • BIS Team
  • ****
  • OFPEC Jedi Master
    • OFPEC
Re:Add a function section
« Reply #1 on: 05 Jan 2003, 01:11:42 »
OMG you are a genius :-*

Although you just quadrupled my workload, I love the idea. I am going to implement it.

Hopefully people have other functions (it'll be fairly lame if yours is the only one there).

;)

Thoughts?
Bohemia Interactive Simulations

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Add a function section
« Reply #2 on: 05 Jan 2003, 02:40:25 »
i have script dat uses somthin like 4 functions  ;D

does it count ?  ;)  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline uiox

  • Contributing Member
  • **
Re:Add a function section
« Reply #3 on: 05 Jan 2003, 17:49:15 »
It's easy to post a function because you don't need write a long text.

Very good for me with my 3 years old English  ;D

And for see if many functions will be post, just like poker: implement it for see it  ;D

With OFPEC OFP++ is born

PS: Free bug .sqf !!!!!

Offline snYpir

  • BIS Team
  • ****
  • OFPEC Jedi Master
    • OFPEC
Re:Add a function section
« Reply #4 on: 07 Jan 2003, 22:17:04 »
BETA Function Reference finished!

http://www.ofpec.com/editors/funcref.php

Upload is working (you can add new functions).

Thoughts? I aimed to make it as quick as possible, but still get all the required information.

I still have a little work to do before going fully public with this - and then i am going on a massive marketing drive to get people to use functions.

 ;D
Bohemia Interactive Simulations

Offline uiox

  • Contributing Member
  • **
Re:Add a function section
« Reply #5 on: 08 Jan 2003, 10:24:43 »
Suggestions:

Note of the author
Num of version
Adapt category relates to functions (good exemple excel )(math,date,Marker,Position,Hour...) ,
Prev + back
Approved by OFPEC (mynights = Mynights -1  ;D)

Function request
NumToInteger
Truncature [2.2568,2] result 2.25, [2.2568,-2] result 0, [225.68,-2] result 200
Arrondi [2.2568,2] result 2.26


Offline snYpir

  • BIS Team
  • ****
  • OFPEC Jedi Master
    • OFPEC
Re:Add a function section
« Reply #6 on: 08 Jan 2003, 10:53:03 »
Suggestions noted, will add function-specific categories.

Version - no probs

What do you mean note of the author?
Bohemia Interactive Simulations

Offline uiox

  • Contributing Member
  • **
Re:Add a function section
« Reply #7 on: 08 Jan 2003, 15:05:44 »
Note of the author : This version is not compatible with 1.0 because arguements are now in 2 arrays, don't use it without change in your mission.