Getting LaTeX to work on Windows
After I got the following errors:
when trying:
2
3
...
\includegraphics{filename.jpg}
And those errors on a .tex file (a friend gave me):
2
3
I found no \bibdata command
I found no \bibstyle command
and several other issues with my latex editors on windows machines, I finally figured out to convert that tex to pdf.
First of all I installed the miktex latex command line tools. I downloaded basic version here, worked fine.
TexnicCenter and LEd can't manage to edit UTF-8 files. So I needed to stick with texmaker (which works also on linux and mac os). To get utf-8 working there, I switched to Options -> Configure Texmaker and turned Font to utf-8.
After I got those issues with includegraphics tags, I changed the 'fast translation'-key F1 to PdfLatex -> ViewPDF (in options) and: It workes well, even with those images.
Embedding Array fields as Attributes in Smarty
If you want to use an arrayfields value as attribute for a function, you can't use:
like described in the manual.
You have to use this instead:
Fix SA-MP 0.2.1 Internet/Serverlist
Looks like Kyeman is continueing the official site, so this list isn't in use anymore. Thanks for using!
<strike>Open
<span>C:\WINDOWS\system32\<wbr></wbr>drivers\etc\hosts</span></strike>
<strike>And append:
</strike>
<strike>Thats it. (Hint: You need logged in as windows administrator to do that)</strike>
<strike>This serverlist will be removed as soon as sa-mp is relaunched by the devs.</strike>
Www-Archives and File-Archives
Today I finally added Www-Archives and File-Archives and the required makeAvailable-functions.
This generally means, that you can share your packages on a webserver somewhere and they'll be downloaded on demand only as soon as you try to install them.
The whole system is using sqlite3 now as database, and runs quite fast in tests.
DUDB 2.4 and DUtils 1.10
Today I updated DUDB and DUtils with new functionality.
DUDB 2.4 has now udb_renameUser(oldnick[],newnick[]) added and DUtils 1.10 has now a new function called frenametextfile(filename[],newfilename[]). I added both of them, because fputchar is still broken in sa-mp 0.2 on linux machines, so dudb uses the secure fcopytextfile instead of the fcopy which only works on windows.
Please update both, if you are using Dini, too.
Escaping { and } or javascript in smarty
When using php's smarty you sometimes want to use { and } (curly braces) in .tpl files.
For such things you can use the {literal}{what you want to do}<!-- {} -->{/literal} statement.
Detailed explanation at the smarty documentation page.


