samp.directory
← Skrypty i biblioteki

melovart/currency-format

SAMP dollar money formatting

Biblioteka★ 1zaktualizowano sie 2025OtherPawnZarchiwizowane
Otwórz na GitHubie

Autor zarchiwizował to repozytorium, więc nie jest już rozwijane.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

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

  1. Download the currency-format.inc file.
  2. Place it into your include/ folder.
  3. 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

formattingmoneypawnsamp

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem