samp.directory
← Scripts et bibliothèques

Mellnik/zwarfare

Zombie Warfare

Gamemode★ 5mis à jour mai 2019Apache-2.0Pawn
Ouvrir sur GitHub

README.md

[ZWAR]

Zombie Warfare

Scripting

  • Use gstr for 144 sized global strings, gstr2 for 255 items. Do not define new strings with that size, use the global ones.

  • Use __GetIP,__GetName,__GetSerial rather than server natives. Reset player vars etc in "ResetPlayerVars".

Versioning

There are sub-versions which form the main version: Major,Minor,Patch. Draft a new release every minor or major version change.

It's self explaning, use patch for small changes, minor for new versions with features and fixes etc. Major versions should only be pushed when very big changes have been made and the old version branch runs out of numbers like 2.9.14

There can still be version numbers greater than 9 like 3.14.2 etc.

Compiler setup

For release/live builds use "-O1 -d0" as compiler parameters. For debug builds "-d3".

Layout

Use proper alignment -> Use TAB not SPACE

Script layout:

  1. include files
  2. defines
  3. enums
  4. global variables
  5. samp callbacks
  6. custom callbacks/public functions
  7. naked functions

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

Mellnik/zwarfare : Gamemode SA-MP | samp.directory