[Plugin] Dotnet Script API
#1

For the last couple of weeks, in my spare time; i have been working on a Dotnet Script API plugin.
It allows you to write samp scripts in any dotnet language (c#/VB.net/C++CLI).
All interop is done via TCP.
Works in both Windows & Linux (using mono).
Full source code is provided (albeit with a somewhat restrictive license at the moment).




Here's a simple example script:

Код:
/*
 * PlayerCommandExample
 * 
 * Player uses '/car' command; a vehicle is spawned & player is put in it
 */

using System;
using Samp.Scripts;
using Samp.API;

namespace Samp.Scripts.ExampleScripts
{
    public class PlayerCommandExample : ScriptBase
    {
        public override void OnLoad() // called when script is loaded
        {
            Samp.API.Player.OnPlayerCommandText += OnPlayerCommandText; // subscribe to OnPlayerCommandText event
        }

        public override void OnUnload() // called when script is unloaded
        {
            Samp.API.Player.OnPlayerCommandText -= OnPlayerCommandText;
        }

        public void OnPlayerCommandText(object sender, Player.OnPlayerCommandTextEventArgs args)
        {
	    string[] cmd = args.text.Split(' ');
            if (String.Compare(cmd[0], "/car") == 0)
            {
                SpawnPlayerCar(args.player);
            }
        }

        public void SpawnPlayerCar(Player pl)
        {
            int model = 415; //cheetah
            Vehicle v = World.CreateVehicle(model, pl.Pos, pl.ZAngle, 0, 0, 600); // spawn the vehicle
            pl.Vehicle = v; // put player in the vehicle
            pl.ClientMessage(0, "{00FF00}Spawning vehicle."); // send the player a message
        }
    }
}

Install:
Put DotnetServer.dll & DotnetServer.ini in your "\samp\plugins\" directory.
Put DotnetFS.amx in your "\samp\filterscripts\" directory.
Add "plugins DotnetServer" to your server.cfg.
Add "filterscripts DotnetFS" to your server.cfg.
Put DotnetClient.exe & DotnetClient.xml anywhere you want.
Put scripts in "\yourdotnetclientdir\Scripts\". It will auto load any files ending in ".cs/.vb/.dll" from that directory.

Config:
Open DotnetServer.ini & modify Port & AuthKey as desired.
note: Make sure you do change AuthKey to something private, as it is the password required to login to the DotnetServer.
note: If you are not running DotnetClient from a remote location then i recommend you firewall off all outside access to the DotnetServer port.
Open DotnetClient.xml & modify Port & AuthKey to match what you put in DotnetServer.ini & modify Address as desired.


Known Bugs / Missing features:
* No encryption.
* No brute force protection.
* No unicode support.
* Can't return values from native callbacks.



Downloads & source @ http://code.******.com/p/samp-dotnet-script-api/

For a great tutorial, which details intallation & usage; see this thread: https://sampforum.blast.hk/showthread.php?tid=302838 by TopAz
Reply
#2

I figured i'd share my thoughts on some random related stuff here.


Regarding the use of TCP for interop:
This has some advantages, and some disadvantages.

The noteable disadvantages are:
* Speed - TCP is inherently a lot slower than direct memory access.
* Security - When accepting connections from the interwebs there is always a possibility of security breach.

The noteable advantages are:
* Remote connection, which can be handy for example; a remote administration interface.
* Mutiple clients can all happily be connected to the dotnet server at the same time.



more later.
Reply
#3

I haven't still done any tests with it since I just woke up and Im in way to my school still if this really isn't buggy, then this is an awesome work, Thanks!
Reply
#4

Good work!
Reply
#5

wonderful. You are on the right track!
Reply
#6

Benchmarks please.
Reply
#7

Код:
[17:32:15]  Loading plugin: DotnetServer
[17:32:15]   Plugin does not conform to architecture.
[17:32:15]   Failed.
Reply
#8

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
Код:
[17:32:15]  Loading plugin: DotnetServer
[17:32:15]   Plugin does not conform to architecture.
[17:32:15]   Failed.
I forgot the .def file when i changed from debug to release config.
Have uploaded new windows bins with that fixed.
Reply
#9

There are two problems... first actually if I change the password and port for example for Port 7777 Pass SlashPT on Client Side and Server Side it doesn't even work on cliend side ( Connection Failed )

And secondly:

pawn Код:
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SendClientMessage' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SendClientMessageToAll' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SendDeathMessage' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GameTextForAll' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GameTextForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetTickCount' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetMaxPlayers' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetGameModeText' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetTeamCount' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AddPlayerClass' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AddPlayerClassEx' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AddStaticVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AddStaticVehicleEx' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AddStaticPickup' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ShowNameTags' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ShowPlayerMarkers' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GameModeExit' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetWorldTime' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetWeaponName' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'EnableTirePopping' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AllowInteriorWeapons' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetWeather' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetGravity' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AllowAdminTeleport' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetDeathDropAmount' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'CreateExplosion' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'EnableZoneNames' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsPlayerAdmin' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'Kick' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'Ban' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SendRconCommand' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetSpawnInfo' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SpawnPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerPos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerPos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerFacingAngle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerFacingAngle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerInterior' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerInterior' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerHealth' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerHealth' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerArmour' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerArmour' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerAmmo' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerAmmo' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerTeam' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerTeam' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerScore' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerScore' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerColor' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerColor' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerSkin' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GivePlayerWeapon' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ResetPlayerWeapons' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerWeaponData' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GivePlayerMoney' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ResetPlayerMoney' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerName' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerMoney' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerState' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerIp' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerPing' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerWeapon' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerKeys' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerName' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'PutPlayerInVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerVehicleID' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'RemovePlayerFromVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TogglePlayerControllable' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'PlayerPlaySound' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerCheckpoint' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DisablePlayerCheckpoint' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerRaceCheckpoint' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DisablePlayerRaceCheckpoint' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerWorldBounds' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerMarkerForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ShowPlayerNameTagForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerMapIcon' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'RemovePlayerMapIcon' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerCameraPos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerCameraLookAt' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetCameraBehindPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AllowPlayerTeleport' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsPlayerConnected' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsPlayerInVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsPlayerInAnyVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsPlayerInCheckpoint' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsPlayerInRaceCheckpoint' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerTime' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TogglePlayerClock' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerWeather' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerTime' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerVirtualWorld' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerVirtualWorld' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'CreateVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DestroyVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetVehiclePos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehiclePos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetVehicleZAngle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehicleZAngle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehicleParamsForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehicleToRespawn' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'LinkVehicleToInterior' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AddVehicleComponent' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ChangeVehicleColor' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ChangeVehiclePaintjob' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehicleHealth' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetVehicleHealth' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AttachTrailerToVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DetachTrailerFromVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsTrailerAttachedToVehicle' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehicleNumberPlate' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehicleVirtualWorld' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetVehicleVirtualWorld' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ApplyAnimation' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'CreateObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetObjectPos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetObjectPos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetObjectRot' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetObjectRot' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsValidObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DestroyObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'MoveObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'StopObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'CreatePlayerObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerObjectPos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerObjectPos' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetPlayerObjectRot' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetPlayerObjectRot' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsValidPlayerObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DestroyPlayerObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'MovePlayerObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'StopPlayerObject' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'CreateMenu' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DestroyMenu' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AddMenuItem' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetMenuColumnHeader' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ShowMenuForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'HideMenuForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'IsValidMenu' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DisableMenu' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'DisableMenuRow' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawCreate' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawDestroy' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawLetterSize' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawTextSize' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawAlignment' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawColor' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawUseBox' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawBoxColor' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawSetShadow' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawSetOutline' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawBackgroundColor' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawFont' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawSetProportional' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawShowForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawHideForPlayer' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawShowForAll' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'TextDrawHideForAll' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'ShowPlayerDialog' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'GetVehicleVelocity' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'SetVehicleVelocity' not found!
[09/12/2011 21:42:40] !DotnetServer Warning!: Native function not found!
[09/12/2011 21:42:40] AMX Function 'AttachObjectToPlayer' not found!
Edit to first problem , if I put on Server Side Pass : SlashPT and Port 7777, and on client side Port 7780 Pass: ChangeMe, it works..
Reply
#10

Damn, sounds like server is not loading ini values, ill fix.
As for the Native function not found errors, did you put in the DotnetFS.amx filterscript & add to server.cfg?
Try compiling the DotnetFS.pwn yourself & use that.
Reply
#11

Quote:
Originally Posted by Iain.Gilbert
Посмотреть сообщение
Damn, sounds like server is not loading ini values, ill fix.
As for the Native function not found errors, did you put in the DotnetFS.amx filterscript & add to server.cfg?
Try compiling the DotnetFS.pwn yourself & use that.
As for the errors yes I did that, I also tried to compile it myself but still same errors, strange...

And yes the filterscript is being loaded...

Anyways awesome work , just loving this release :3

Edit:

Here's the full log so you can see everything seems fine..

pawn Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d, (C)2005-2011 SA-MP Team

[09/12/2011 22:59:43]
[09/12/2011 22:59:43] Server Plugins
[09/12/2011 22:59:43] --------------
[09/12/2011 22:59:43]  Loading plugin: geoip
[09/12/2011 22:59:43] GeoIP_Plugin got loaded.
[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: sscanf
[09/12/2011 22:59:43]

[09/12/2011 22:59:43]  ===============================

[09/12/2011 22:59:43]       sscanf plugin loaded.    

[09/12/2011 22:59:43]    (c) 2009 Alex "******" Cole

[09/12/2011 22:59:43]  ===============================

[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: mysql
[09/12/2011 22:59:43]

  > MySQL plugin R6-2 successfully loaded.

[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: whirlpool
[09/12/2011 22:59:43]  
[09/12/2011 22:59:43]  ==================
[09/12/2011 22:59:43]  
[09/12/2011 22:59:43]   Whirlpool loaded
[09/12/2011 22:59:43]  
[09/12/2011 22:59:43]  ==================
[09/12/2011 22:59:43]  
[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: regex
[09/12/2011 22:59:43]


[09/12/2011 22:59:43] ______________________________________


[09/12/2011 22:59:43]  Regular Expression Plugin v0.2.1 loaded
[09/12/2011 22:59:43] ______________________________________


[09/12/2011 22:59:43]  By: Fro (c) Copyright <TBG> 2009-2011
[09/12/2011 22:59:43] ______________________________________


[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: xCmdSys
[09/12/2011 22:59:43]

[09/12/2011 22:59:43]   > xCommandSystem v1.2.2.5 by SlashPT got loaded !

[09/12/2011 22:59:43]

[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: xForeach
[09/12/2011 22:59:43]

[09/12/2011 22:59:43]   > xPluginForeach v1.2.2.4 by SlashPT got loaded !

[09/12/2011 22:59:43]

[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: xPluginStreamer
[09/12/2011 22:59:43]

[09/12/2011 22:59:43]   > xPluginStreamer v1.2.1.18 by SlashPT got loaded !

[09/12/2011 22:59:43]

[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loading plugin: DotnetServer
[09/12/2011 22:59:43] DotnetServer: Server bound to port 7780.
[09/12/2011 22:59:43] DotnetServer: Server Started.
[09/12/2011 22:59:43] DotnetHook TCP Server 0.1.0 plugin loaded.

[09/12/2011 22:59:43]   Loaded.
[09/12/2011 22:59:43]  Loaded 9 plugins.

[09/12/2011 22:59:43]
[09/12/2011 22:59:43] Filterscripts
[09/12/2011 22:59:43] ---------------
[09/12/2011 22:59:43]   Loading filterscript 'objects.amx'...
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SendClientMessage' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SendClientMessageToAll' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SendDeathMessage' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GameTextForAll' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GameTextForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetTickCount' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetMaxPlayers' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetGameModeText' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetTeamCount' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AddPlayerClass' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AddPlayerClassEx' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AddStaticVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AddStaticVehicleEx' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AddStaticPickup' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ShowNameTags' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ShowPlayerMarkers' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GameModeExit' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetWorldTime' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetWeaponName' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'EnableTirePopping' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AllowInteriorWeapons' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetWeather' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetGravity' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AllowAdminTeleport' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetDeathDropAmount' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'CreateExplosion' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'EnableZoneNames' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsPlayerAdmin' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'Kick' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'Ban' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SendRconCommand' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetSpawnInfo' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SpawnPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerPos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerPos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerFacingAngle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerFacingAngle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerInterior' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerInterior' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerHealth' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerHealth' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerArmour' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerArmour' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerAmmo' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerAmmo' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerTeam' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerTeam' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerScore' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerScore' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerColor' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerColor' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerSkin' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GivePlayerWeapon' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ResetPlayerWeapons' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerWeaponData' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GivePlayerMoney' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ResetPlayerMoney' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerName' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerMoney' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerState' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerIp' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerPing' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerWeapon' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerKeys' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerName' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'PutPlayerInVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerVehicleID' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'RemovePlayerFromVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TogglePlayerControllable' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'PlayerPlaySound' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerCheckpoint' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DisablePlayerCheckpoint' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerRaceCheckpoint' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DisablePlayerRaceCheckpoint' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerWorldBounds' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerMarkerForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ShowPlayerNameTagForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerMapIcon' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'RemovePlayerMapIcon' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerCameraPos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerCameraLookAt' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetCameraBehindPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AllowPlayerTeleport' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsPlayerConnected' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsPlayerInVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsPlayerInAnyVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsPlayerInCheckpoint' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsPlayerInRaceCheckpoint' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerTime' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TogglePlayerClock' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerWeather' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerTime' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerVirtualWorld' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerVirtualWorld' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'CreateVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DestroyVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetVehiclePos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehiclePos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetVehicleZAngle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehicleZAngle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehicleParamsForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehicleToRespawn' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'LinkVehicleToInterior' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AddVehicleComponent' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ChangeVehicleColor' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ChangeVehiclePaintjob' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehicleHealth' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetVehicleHealth' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AttachTrailerToVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DetachTrailerFromVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsTrailerAttachedToVehicle' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehicleNumberPlate' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehicleVirtualWorld' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetVehicleVirtualWorld' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ApplyAnimation' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'CreateObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetObjectPos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetObjectPos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetObjectRot' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetObjectRot' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsValidObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DestroyObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'MoveObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'StopObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'CreatePlayerObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerObjectPos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerObjectPos' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetPlayerObjectRot' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetPlayerObjectRot' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsValidPlayerObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DestroyPlayerObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'MovePlayerObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'StopPlayerObject' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'CreateMenu' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DestroyMenu' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AddMenuItem' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetMenuColumnHeader' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ShowMenuForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'HideMenuForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'IsValidMenu' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DisableMenu' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'DisableMenuRow' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawCreate' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawDestroy' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawLetterSize' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawTextSize' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawAlignment' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawColor' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawUseBox' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawBoxColor' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawSetShadow' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawSetOutline' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawBackgroundColor' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawFont' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawSetProportional' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawShowForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawHideForPlayer' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawShowForAll' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'TextDrawHideForAll' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'ShowPlayerDialog' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'GetVehicleVelocity' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'SetVehicleVelocity' not found!
[09/12/2011 22:59:43] !DotnetServer Warning!: Native function not found!
[09/12/2011 22:59:43] AMX Function 'AttachObjectToPlayer' not found!
[09/12/2011 22:59:43]   Loading filterscript 'DotnetFS.amx'...
[09/12/2011 22:59:43]   Loaded 2 filterscripts.

[09/12/2011 22:59:43] [INFO:] 0 house linked vehicles were loaded from file /LVRLC/Vehicles/houselinkedvehicles.pwn !
[09/12/2011 22:59:43] [INFO:] 1 bizz linked vehicles were loaded from file /LVRLC/Vehicles/bizzlinkedvehicles.pwn !
[09/12/2011 22:59:43]

[09/12/2011 22:59:43] - ' ------------------ ' -
[09/12/2011 22:59:43] - ' House System Debug ' -
[09/12/2011 22:59:43] - ' Houses Created : 0 ' -
[09/12/2011 22:59:43] - ' Houses Re-Created : 275 ' -
[09/12/2011 22:59:43] - ' Cars Created : 0 ' -
[09/12/2011 22:59:43] - ' Cars Re-Created : 275 ' -
[09/12/2011 22:59:43] - ' Bizzes Created : 0 ' -
[09/12/2011 22:59:43] - ' Bizzes Re-Created : 1 ' -
[09/12/2011 22:59:43] - ' Bizz-Cars Created : 0 ' -
[09/12/2011 22:59:43] - ' Bizz-Cars Re-Created : 1 ' -
[09/12/2011 22:59:43] - ' ------------------ ' -
[09/12/2011 22:59:43] - ' Added Gates : 44 ' -
[09/12/2011 22:59:43] - ' ------------------ ' -
[09/12/2011 22:59:43]

[09/12/2011 22:59:43]

[09/12/2011 22:59:43]        _|_|_|  _|                      _|        _|_|_|    _|_|_|_|_|
[09/12/2011 22:59:43]      _|        _|    _|_|_|    _|_|_|  _|_|_|    _|    _|      _|
[09/12/2011 22:59:43]        _|_|    _|  _|    _|  _|_|      _|    _|  _|_|_|        _|
[09/12/2011 22:59:43]            _|  _|  _|    _|      _|_|  _|    _|  _|            _|
[09/12/2011 22:59:43]      _|_|_|    _|    _|_|_|  _|_|_|    _|    _|  _|            _|
[09/12/2011 22:59:43]

[09/12/2011 22:59:43]

[09/12/2011 22:59:43] Las Venturas Real Life City v0.1.1.21
[09/12/2011 22:59:43] Number of vehicle models: 107
Reply
#12

Ah, just from looking at that log think i see the problem, it looks as though it is searching for the native functions before it loads the DotnetFS filterscript. That should be very easy to fix. I'll post an update later when i have time.

For a temp fix, try changing the the load order of filterscripts in server.cfg, so that DotnetFS loads first.
Reply
#13

Код:
2011/12/10 - 13:14:54 - SampClient.log created.
2011/12/10 - 13:14:54 - Samp Dotnet Script API 0.0.1.0
2011/12/10 - 13:14:54 - http://code.******.com/p/samp-dotnet-scr...2011/12/10 - 13:14:54 - [Debug] xxx.xxx.x.xxx / 7777 / ChangeMe
2011/12/10 - 13:14:54 - [Debug] Connecting to server: xxx.xxx.x.xxx
Don't know why ChangeMe is coming. I already changed it. Maybe it can't parse ini values.
Reply
#14

Have updated download to fix ini loading & find native function at startup.

T0paz, Client loads values from .xml, server loads from .ini. Try new download. & let me know if problem still exists.
Reply
#15

Okay , tested the new version and actually the previous bugs were fixed, thanks

I'll start testing it
Reply
#16

It works now. Thanks a bunch for making this plugin. You deserve reputation.

Edit: What to reference?

Edit2: Ok got it. It's DotnetClient.exe

Edit3: Your .NET FRAMEWORK should be 4.0
Reply
#17

Dotnet Script API 0.0.1.2[R9]
Dotnet Script API is an open source SA-MP Plugin which allows you to write SA-MP scripts in any .NET Language. All interop is done via TCP. Dotnet Script API also works in both Windows & Linux using mono. Iain Gilbert didn't compiled so I compiled the R9.

Author: Iain.Gilbert
Version: R9



Change Log[R9]
Код:
r9		
Added client side caching. Added calling of amx public functions.

r8		
Fix server ini loading. Fix server find native functions on startup.

r7		
re-add DotnetServer to Visual Studio solution, after MonoDevelop rudely decided to remove it.

r6		
Release 0.0.1.0

r5		
Fixed Linux unhandled SIGPIPE error in server when a client terminates connection.

r4		
NativeFunctionProcessor fixes. License changes.

r3		
mono compatibility netbeans project files


Download Link[R9]

Windows: CLICK ME
Linux: Still Doing

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)