API SaveSystemNotes: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
split
 
Mick (talk | contribs)
 
Line 4: Line 4:
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
save system notes to settings/<charactername>/system<systemid>notes.txt
save system notes to settings/<charactername>/system<systemid>notes.txt<br>
Numbers longer then 14 digits shouldn't be used for systemid.<br>
<br>
<br>
'''Arguments:'''<br>
'''Arguments:'''<br>
''notes'' Notes to save. Normally a spickled version of an [[API Index#SystemNotes]] entry, but it accepts anything<br>
''notes'' Notes to save. Normally a spickled version of an [[API Index#SystemNotes]] entry, but it accepts anything<br>
''sectorid'' [[systemid]]
''sectorid'' [[systemid]]
<br>
<br><br>
'''Notes:'''<br>
using numbers with more then 14 digits causes systemid to be saved in scientific notation ie. 1e+016<br>
with first number rounded to 13 decimal places, which means that<br>
using systemid of 123456789012345 or 123456789012346 causes the file to be named:<br>
system1.2345678901235e+014notes.txt<br>

Latest revision as of 14:58, 25 April 2009

SaveSystemNotes

Definition: SaveSystemNotes(string notes, int systemid) -> nil
Description:
save system notes to settings/<charactername>/system<systemid>notes.txt
Numbers longer then 14 digits shouldn't be used for systemid.

Arguments:
notes Notes to save. Normally a spickled version of an API Index#SystemNotes entry, but it accepts anything
sectorid systemid

Notes:
using numbers with more then 14 digits causes systemid to be saved in scientific notation ie. 1e+016
with first number rounded to 13 decimal places, which means that
using systemid of 123456789012345 or 123456789012346 causes the file to be named:
system1.2345678901235e+014notes.txt