SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 28/11/2017, 07:29 AM   #371
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,082
Reputation: 197
Default Re: SampSharp - Write gamemodes in .NET

The 0.8 prerelease should be quite stable by now, you can definitely use it for development and I'm thinking I'll release a full release of 0.8 soon, unless new issues pop up.

Updating from 0.7 to 0.8 should be fairly straight forward, unless you use any low level sampsharp stuff, which is unlikely.
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 28/11/2017, 09:13 AM   #372
dbogdan
Big Clucker
 
Join Date: Jan 2016
Posts: 54
Reputation: 1
Default Re: SampSharp - Write gamemodes in .NET

I get this error when I try to install SampSharp package:

Code:
Could not install package 'SampSharp.Core 0.8.0-alpha2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.			0
dbogdan is offline   Reply With Quote
Old 28/11/2017, 09:15 AM   #373
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,082
Reputation: 197
Default Re: SampSharp - Write gamemodes in .NET

Please use a newer version of .NET Framework(4.6 or better). Select it in your project settings. I'd also like to advise you that .NET Core is much faster and more flexible(works on Linux) than .NET Framework
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 28/11/2017, 10:06 AM   #374
dbogdan
Big Clucker
 
Join Date: Jan 2016
Posts: 54
Reputation: 1
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by ikkentim View Post
Please use a newer version of .NET Framework(4.6 or better). Select it in your project settings. I'd also like to advise you that .NET Core is much faster and more flexible(works on Linux) than .NET Framework
Cool. Thanks you!
dbogdan is offline   Reply With Quote
Old 28/11/2017, 10:53 AM   #375
Meller
Banned
 
Join Date: Dec 2016
Posts: 641
Reputation: 132
Default Re: SampSharp - Write gamemodes in .NET

Haven't you thought of how a 4 door vehicle works?
Quote:
player.PutInVehicle(vehicle);
You're missing out a seat parameter, and here ladies and gentlemen, here's why you should script in the native language.
Meller is offline   Reply With Quote
Old 28/11/2017, 10:54 AM   #376
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,082
Reputation: 197
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by Meller View Post
Haven't you thought of how a 4 door vehicle works?


You're missing out a seat parameter, and here ladies and gentlemen, here's why you should script in the native language.
Congratulations! You've found the weakest argument.

Overloads available. http://api.sampsharp.timpotze.nl/sea...t=PutInVehicle

Besides, if you ever find a missing native (you won't) you can call any native you like.
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 28/11/2017, 11:03 AM   #377
Sithis
Gangsta
 
Join Date: Mar 2013
Location: the Netherlands
Posts: 920
Reputation: 73
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by Meller View Post
Haven't you thought of how a 4 door vehicle works?


You're missing out a seat parameter, and here ladies and gentlemen, here's why you should script in the native language.
Ouch.. commenting without knowing how the language works
__________________
Developer and owner of https://trinityrpg.com
Sithis is offline   Reply With Quote
Old 28/11/2017, 10:05 PM   #378
SchurmanCQC
High-roller
 
SchurmanCQC's Avatar
 
Join Date: Oct 2010
Location: Ontario, Canada
Posts: 1,887
Reputation: 249
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by Meller View Post
here ladies and gentlemen, here's why you should script in the native language.
I think the fact that SA-MP still uses Pawn is abhorrent, but acceptable given Kalcor's circumstances and the fact that updating it probably isn't worth it.

It is the reason these plugins exist, and let me reiterate: to give you an option. If you would rather use Pawn, go ahead.

I won't dare to comment on the fact that you don't seem to understand C#.

Quote:
Originally Posted by ikkentim View Post
This new version also supports hot swapping! You'll no longer need to restart your server or game during development!
I am so excited to try this plugin
__________________
I'm probably stoned.
SchurmanCQC is offline   Reply With Quote
Old 29/11/2017, 06:56 PM   #379
lepegadore
Little Clucker
 
Join Date: Aug 2016
Posts: 9
Reputation: 3
Default Re: SampSharp - Write gamemodes in .NET

Using:
Code:
var d = new DynamicPickup(20, 20, new Vector3(145.8119, -77.6938, 1.233);
d.ShowInWorld(1);
Throws: NativeNotImplementedException: Native is not implemented. Was this native wrapper not created using a proxy factory?


Using 0.7 with SampSharp.Streamer References from Nuget Repository
lepegadore is offline   Reply With Quote
Old 29/11/2017, 07:17 PM   #380
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,082
Reputation: 197
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by lepegadore View Post
Using:
Code:
var d = new DynamicPickup(20, 20, new Vector3(145.8119, -77.6938, 1.233);
d.ShowInWorld(1);
Throws: NativeNotImplementedException: Native is not implemented. Was this native wrapper not created using a proxy factory?


Using 0.7 with SampSharp.Streamer References from Nuget Repository
You need to have streamer 2.8.2 installed: https://github.com/samp-incognito/sa...ses/tag/v2.8.2
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write on the map hejsan123 Scripting Help 3 23/09/2012 08:35 AM
How to write something in a VAR? Ihsan_Cingisiz Help Archive 4 29/05/2010 07:24 PM
How Do You Write This? sidhu123 Everything and Nothing 2 12/09/2009 04:05 AM
Write something in big and to the top TimBuk.Ekh Help Archive 3 18/04/2009 07:19 PM


All times are GMT. The time now is 04:16 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.