Bibliothek★ 1aktualisiert Aug. 2025OtherPawnArchiviert
Auf GitHub öffnenDer Autor hat dieses Repository archiviert, es wird also nicht mehr gepflegt.
Im Pawn-Compiler ausprobieren →
Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.
README.md
currency-format
Currency formatting utility for SA-MP or OPENMP servers.
Features
- Format integers into readable currency strings.
- Works with any SA-MP or OPEN.MP gamemode.
- Lightweight and dependency-free.
- Includes compile-time validation for macro definitions.
Installation
- Download the
currency-format.incfile. - Place it into your
include/folder. - Define one of the currency macros before including the file.
Example Usage
#define CURRENCY_DOLLAR
#include <currency-format>
new cash = 123456;
new formatted[32];
format(formatted, sizeof(formatted), "%s", FormatMoney(cash));
printf("%s", formatted);
// Output: $1.234,56
License
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International Public License.
Full license text: https://creativecommons.org/licenses/by-nc/4.0/legalcode
Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden