samp.directory
← Skrypty i biblioteki

emmett-white/survive-time

survive-time

Biblioteka★ 14zaktualizowano lut 2021Brak licencjiPawnsampctl
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

Zainstaluj za pomocą sampctl

sampctl package install emmett-white/survive-time

Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.

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.

Zależy od 17 pakietów

Używany przez 1 pakiet

README.md

survive-time

Join our discord server

Survive-Time Discord Server <- click

Installation

Simply install to your project:

mkdir project && cd project
git clone https://github.com/emmett-white/survive-time
cd survive-time
sampctl p ensure && sampctl p build

Contributing & Style Guide

// Constants and macros in uppercase, with underscores separating words.
// eg.
#define MAX_REASON_TEXT 64

const MAX_PLAYERS = 10;

// Variables
// Globals `static` as much as possible to prevent complex inter-module dependencies.
// eg.
static var1; // invalid
static var1,
    var2; // invalid

static
    var1,
    var2; // valid

// Brace style
// Allman
// eg.
Func_Name(const playerid, ...)
{
    if (...) {
        return ...;
    }

    if (...) {
        // code
        
        return ...;
    }
    
    return 1;
}

// Function names
// Functions and callbacks in CamelCase
// eg.
Player_GetLevel(const playerid)
{
    return char_score[playerid];
}

forward OnAccountRegistered(const playerid);
public OnAccountRegistered(const playerid)
{
    account_id[playerid] = cache_insert_id();
    return 1;
}

survive-time

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

emmett-white/survive-time: Biblioteka SA-MP | samp.directory