samp.directory
← Scripts y librerías

Sreyas-Sreelal/pawn-humanize

A human-friendly Pawn library

Librería★ 2actualizado jul 2018MITPAWNsampctl
Abrir en GitHub

Instalar con sampctl

sampctl package install Sreyas-Sreelal/pawn-humanize

Ejecútalo en la carpeta de tu proyecto. sampctl descarga el paquete y sus dependencias.

Depende de 1 paquete

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)

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha