These are chat archives for ikkentim/SampSharp

7th
Jun 2016
BryanHitchcock
@BryanHitchcock
Jun 07 2016 02:22
Any idea why I keep getting an invalid buffer size warning using streamer?
Everything still works fine, I'm just getting a message for each dynamic item spawned
Tim Potze
@ikkentim
Jun 07 2016 06:57
@BryanHitchcock No GetPlayerFindZ exists yet which returns a Vector3. Added to todo list
@fvandillen You mean it being released on the nuget repo? No it hasn’t been released yet. Time was so pressing I didn’t spend another minute on sampsharp since last time I told you I was working on the build script :(
@BryanHitchcock No idea where the warning is exactly coming from. I try to remember to do some testing when I have time. Is the error a sampsharp error, sampgdk error or streamer error? (or something else)
BryanHitchcock
@BryanHitchcock
Jun 07 2016 17:02
@ikkentim sampgdk, happens every time I create something dynamic (pickups, object, and 3dtextlabels at least, not sure about the others)
This is what it looks like (1 bank has 2 pickups and 1 text label): https://i.gyazo.com/0e65f64b79b2feb10057ead96aeb283e.png
Tim Potze
@ikkentim
Jun 07 2016 17:19
I'll look into it
BryanHitchcock
@BryanHitchcock
Jun 07 2016 17:19
thanks
this is how I'm calling them
this.TextLabel = new DynamicTextLabel(Data.Tag, Color.Yellow, new Vector3(Data.OutsideX, Data.OutsideY, Data.OutsideZ + 0.88f), 200f, 200f, null, null, true, new int[] { Data.OutsideVirtualWorld }, new int[] { Data.OutsideInterior }, Player.All.ToArray());
this.OutsidePickup = new DynamicPickup(Data.PickupModel, 23, new Vector3(Data.OutsideX, Data.OutsideY, Data.OutsideZ), 200f, new int[] { Data.OutsideVirtualWorld }, new int[] { Data.OutsideInterior }, Player.All.ToArray());
this.InsidePickup = new DynamicPickup(Data.PickupModel, 23, new Vector3(Data.InsideX, Data.InsideY, Data.InsideZ), 200f, new int[] { Data.InsideVirtualWorld }, new int[] { Data.InsideInterior }, Player.All.ToArray());
Tim Potze
@ikkentim
Jun 07 2016 17:20
surround code with ``` before and after :)
BryanHitchcock
@BryanHitchcock
Jun 07 2016 17:20
oh okay, whoops :D
Tim Potze
@ikkentim
Jun 07 2016 17:20
np :) just easier to read
Florian van Dillen
@fvandillen
Jun 07 2016 17:22
@BryanHitchcock Mind telling me how you do these console colors :D
Tim Potze
@ikkentim
Jun 07 2016 17:48
C api SetConsoleTextAttribute ? :s
Just guessing
Or trough Console.ForegroundColor
and prob Console.BackgroundColor
never tested it
BryanHitchcock
@BryanHitchcock
Jun 07 2016 18:08
@fvandillen I created a function called SendConsoleMessage(string message, ConsoleColor color)
it does Console.Foreground = color;
Console.Writeline(message);
Console.Foreground = ConsoleColor.Gray;
Florian van Dillen
@fvandillen
Jun 07 2016 18:13
Nice, thanks!
BryanHitchcock
@BryanHitchcock
Jun 07 2016 18:22
no problem :)
BryanHitchcock
@BryanHitchcock
Jun 07 2016 23:17
@ikkentim @fvandillen I converted Zones.inc to a C# Zone class because I need it for my game mode, want me to add it to the Samp# project?