I feel kinda stupid asking, but I canÂ't do the syntax of functions, yet.
I want to implement the gridcoord function by uiox in a Multiplayer map. I followed the instructions exactly:
Put this in init.sqs : GridCoord = preprocessFile "gridcoord.sqf"
Then I made trigger activated repeatedly by radio and at "On activation" I put:
playerposit = getpos player call GridCoord; hint format ["Position: %1", playerposit];
Alas, when I radio the trigger in preview, I get an error message at this line:
_GrandeLettre = (((_Pos select 0) - [error shows here]((_Pos select 0) Mod 1280))/1280);
[error shows here] is where the # thingy comes up. Then it does like 50 spaces in the error message and I can see the beginning of the next line on the far right, going off the screen.
I tried some things with the syntax, but there donÂ't appear to be a bracket or sth wrong.
I reckon itÂ's either a syntax error that (still) dumb windows user that is used to OFP scripting syntax (myself) canÂ't figure out or the way I call the function is wrong.
Getting into function syntax tutorial myself at the weekend, but any help would be greatly appreciated and could get me started on getting into functions.
Cheers Coyote @ rage