-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VehicleModelType as command parameter #416
Comments
if(sscanf(params, "s[20]I(-1)I(-1)", model, color1, color2)) |
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 |
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? |
Fixed in 0.10 |
With the following code,
/v tug
does not work (Usage message displayed), but/v Tug
works.This might be caused by 2 entries in the enum starting with same name: Tug and TugStairsTrailer.
https://github.com/ikkentim/SampSharp/blob/master/src/SampSharp.GameMode/SAMP/Commands/ParameterTypes/EnumType.cs#L59
The text was updated successfully, but these errors were encountered: