Skip to content

Commit afc5fc0

Browse files
committed
added Pawn Package files
added .pwn and .inc to .gitattributes for proper language detection by GitHub added sampctl badge and usage instructions to readme added all necessary dependencies to pawn.json added missing main() entrypoint removed invalid array return in GetMaterialSizeName
1 parent 0153ee6 commit afc5fc0

File tree

7 files changed

+81
-2
lines changed

7 files changed

+81
-2
lines changed

.gitattributes

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Auto detect text files and perform LF normalization
2-
* text=auto
2+
* text=auto
3+
4+
*.pwn linguist-language=Pawn
5+
*.inc linguist-language=Pawn

.gitignore

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#
2+
# Package only files
3+
#
4+
5+
# Compiled Bytecode, precompiled output and assembly
6+
*.amx
7+
*.lst
8+
*.asm
9+
10+
# Vendor directory for dependencies
11+
dependencies/
12+
13+
# Dependency versions lockfile
14+
pawn.lock
15+
16+
17+
#
18+
# Server/gamemode related files
19+
#
20+
21+
# compiled settings file
22+
# keep `samp.json` file on version control
23+
# but make sure the `rcon_password` field is set externally
24+
# you can use the environment variable `SAMP_RCON_PASSWORD` to do this.
25+
server.cfg
26+
27+
# Plugins directory
28+
plugins/
29+
30+
# binaries
31+
*.exe
32+
*.dll
33+
*.so
34+
announce
35+
samp03svr
36+
samp-npc
37+
38+
# logs
39+
logs/
40+
server_log.txt
41+
42+
#
43+
# Common files
44+
#
45+
46+
*.sublime-workspace

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1+
# Map-Editor-V3
2+
3+
[![sampctl](https://shields.southcla.ws/badge/sampctl-Map--Editor--V3-2f2f2f.svg?style=for-the-badge)](https://github.com/fusez/Map-Editor-V3)
4+
15
For more information, see this forum post on SA-MP Forums:
26
http://forum.sa-mp.com/showthread.php?t=648101
7+
8+
## Usage
9+
10+
Simply grab and run:
11+
12+
```bash
13+
sampctl package get fusez/Map-Editor-V3
14+
cd Map-Editor-V3
15+
sampctl package run
16+
```
17+
18+
And connect to `localhost:7777`.

filterscripts/mapedit.amx

-5.14 MB
Binary file not shown.

filterscripts/mapedit.pwn

+4
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,7 @@ public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ) {
362362
#include "mapedit/building/call.pwn"
363363
#include "mapedit/buildlist/call.pwn"
364364
#include "mapedit/printsuccess/call.pwn" // has to be at the end of callback list, prints a message if called
365+
366+
main() {
367+
//
368+
}

filterscripts/mapedit/matsize/func.pwn

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ GetMaterialSizeName(materialsize, name[], name_size) {
66
} else {
77
format(name, name_size, "Unknown Material Size (%i)", materialsize);
88
}
9-
return name;
109
}
1110

1211
GetMaterialSize(search[]) {

pawn.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"user": "fusez",
3+
"repo": "Map-Editor-V3",
4+
"entry": "filterscripts/mapedit.pwn",
5+
"output": "filterscripts/mapedit.amx",
6+
"dependencies": [
7+
"sampctl/samp-stdlib",
8+
"maddinat0r/sscanf",
9+
"oscar-broman/strlib"
10+
]
11+
}

0 commit comments

Comments
 (0)