Skip to content

Mellnik/zwarfare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[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