Ok, so i went to the compuphase's site and downloaded and installed PAWN. Program on computer is called PAWN IDE (Quincy). I put the included files into the installed folder for PAWN so I could compile the scripts.
First errors i get refer to these:
and the errors are "warning 213: tag mismatch"Code :
public OnActorAlert(actor, Bool:alerted) { printf("alert: %d", alerted); } public OnActorSneak(actor, Bool:sneaking) { printf("sneaking: %d", sneaking); }
I comment those out and everything compiles correctly.
I set up my vaultserver.ini like so:
and start the server and get this error:Code :
# vaultserver configuration file # [url]www.vaultmp.com[/url] [general] name=Testing server game=newvegas ;can be "fallout3", "newvegas", or "oblivion" master=vaultmp.com ;master server address, default is: vaultmp.com (can have the format IP:port) port=27015 ;the port to run the server on, default is: 1770 (UDP for game, TCP for fileserve) query=1 ;enable direct query, default is: 1 players=4 ;number of player slots, default is: 4 save=Fallout3/default.fos ;savegame for the players to load (need to be located in the folder "saves") fileserve=1 ;allow users to download required files (such as mods) from the server, default is: 0 fileslots=8 ;maximum number of parallel fileserve connnections, default is: 8 [scripts] ;comma seperated list of PAWN / C++ scripts, will be loaded in the given order ;scripts need to be located in the root scripts=test1.amx [mods] ;comma seperated list of mod files required to play on this server ;mods need to be located in the folder "mods", which is the games "Data" folder clientside ;mods will be loaded in the given order ;mods=mymod.esp
[code]
Pawn script test1.amx error <17>: "Invalid/unsupported P-code file format"
/code]
Yet it still connects to the MasterServer, but doesn't set anything that's set in the script. (btw, im using standard.pwn that comes with the vaultmp files)
Here's this:
Code :
main() { printf("My first PAWN vaultscript <3\n"); SetServerName("vaultmp 0.1a server"); SetServerRule("website", "vaultmp.com"); switch (GetGameCode()) { //<<<<<<<--------------- thats line 17 in the script case FALLOUT3: SetServerMap("the wasteland"); case NEWVEGAS: SetServerMap("mojave desert"); case OBLIVION: SetServerMap("cyrodiil"); } //CreateTimer("MyTimer", 5000); }
Any know fixes yet?
Thanks in advance!