Comments (4)
if(sscanf(params, "s[20]I(-1)I(-1)", model, color1, color2))
{
return SCM(playerid, COLOR_SYNTAX, "Usage: /veh [modelid/name] [color1 (optional)] [color2 (optional)]");
}
from sampsharp.
if(sscanf(params, "s[20]I(-1)I(-1)", model, color1, color2))
{
return SCM(playerid, COLOR_SYNTAX, "Usage: /veh [modelid/name] [color1 (optional)] [color2 (optional)]");
}
Hi
Your code snippet is from pawn, it is not relevant in the context of SampSharp and C# and also is not working in this context
from sampsharp.
I tested this with this command, but it works fine for me:
[Command("vehicle", "veh", "v", DisplayName = "v")]
private static void SpawnVehicleCommand(Player player, VehicleModelType model)
{
// Spawn vehicle
var vehicle = Vehicle.Create(model, player.Position, 0, 0, 0);
player.PutInVehicle(vehicle);
}
Could you provide a repro case?
from sampsharp.
Fixed in 0.10
from sampsharp.
Related Issues (20)
- [core] Make types which are not part of the public API internal
- Create new command system
- Re-add check for SAMPSHARP_RUNTIME environment variable
- Invalid gamemode specified in server.cfg HOT 3
- player.Vehicle returns EntityID instead of Vehicle HOT 4
- "I couldn't load any gamemode scripts" What is wrong here? HOT 1
- Actor.Position should not be settable HOT 2
- Runtime error on Linux HOT 2
- Bug when get Component values in GameModeExit HOT 3
- config.json support on open.mp HOT 1
- Vistual Studio won't stop on breakpoint or not debugging when error occurrs HOT 3
- Failed to initialize CoreCLR runtime. Error -1 HOT 11
- Add overload for AddComponent method that takes an instance value
- Add interfaces to SampSharp.Entities.SAMP.Components for unit-testing
- open.mp HOT 5
- Loading error
- (question): coexistence compatibility between an existing gamemode and sampsharp HOT 2
- Exception on player disconnect/crash when a Dialog window is active
- .NET dependencies resolving not working as expected HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sampsharp.