Bibliothek★ 2aktualisiert Juli 2018MITPAWNsampctl
Auf GitHub öffnenMit sampctl installieren
sampctl package install Sreyas-Sreelal/pawn-humanize
Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.
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.
Hängt von 1 Paket ab
- sampctl/samp-stdlibnicht in diesem Verzeichnis
README.md
pawn-humanize
Pawn-humanize is a library inspired by go-humanize that makes stuff computers can read easily, more readable for humans.
Installation (Sampctl)
Simply install to your project:
sampctl package install thecodeah/pawn-humanize
Include in your code and begin using the library:
#include <humanize>
Features
Commas
0 -> 0
100 -> 100
1000 -> 1,000
1000000 -> 1,000,000
-100000 -> -100,000
HumanizeComma(integer, dest[], maxLength = sizeof dest)
Colors
0xA86420FF -> "Chocolate Brown"
0x42F44EFF -> "Lime Green"
0x137A8EFF -> "Teal"
HumanizeColor(color, dest[], maxLength = sizeof dest)
Ordinals
0 -> 0th
1 -> 1st
2 -> 2nd
3 -> 3rd
4 -> 4th
etc...
HumanizeOrdinal(number, dest[], maxLength = sizeof dest)
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