samp.directory
← Skripte und Bibliotheken

tdworg/samp-include-ulong

A library for using the unsigned values in code. It works on #emit, because PAWN have AMX-instructions for working with the unsigned values. In other words, it's unsigned long int' in PAWN.

Bibliothek★ 6aktualisiert Dez. 2016ZlibPAWN
Auf GitHub öffnen
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

TDW Unsigned long

A library for using the unsigned values in your code. It works on #emit, because PAWN have AMX-instructions for working with the unsigned values.

Installation

  1. Download library.
  2. All files move into folder pawno/includes. But, you can use the flag -i<path> to specify an alternative path.
  3. Include it:
#include <a_samp> // standart SAMP library
#include <tdw_ulong>

Example:

#include <tdw_ulong>

main()
{
	new buffer[11];

	new ulong:unsigned_value = cellmax;
	unsigned_value *= 2;
	ulong_string(buffer, unsigned_value);
	printf("%s", buffer);


	new signed_value = cellmax;
	signed_value *= 2;
	printf("%d", signed_value);
}

amxincludelongpawnsamp

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