Steel Jaw Posted November 24, 2022 Posted November 24, 2022 I see nothing wrong with this code but it returns with syntax error... MapKey(&Throttle,MSU,0,0); "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB.
Hempstead Posted November 24, 2022 Posted November 24, 2022 Missing a comma between &Throttle and MSU? Syntax error.
Steel Jaw Posted November 24, 2022 Author Posted November 24, 2022 4 minutes ago, Hempstead said: Missing a comma between &Throttle and MSU? Syntax error. Thanks for the reply, the comma is there however. "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB.
Hempstead Posted November 24, 2022 Posted November 24, 2022 33 minutes ago, Steel Jaw said: MapKey(&Throttle,MSU,0,0); Don’t see no comma. The correct syntax should be MapKey(&Throttle, MSU); As to whether the semantics is correct or not, no idea.
Steel Jaw Posted November 24, 2022 Author Posted November 24, 2022 Dude how do you not see the comma between &Throttle and MSU ? "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB.
Hempstead Posted November 24, 2022 Posted November 24, 2022 Do you see the comma in the screenshot? I not only don’t see comma in your original post, in the quote, I don’t see it in the screenshot either.
Steel Jaw Posted November 24, 2022 Author Posted November 24, 2022 Switch to night mode at the top of the website... "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB.
Hempstead Posted November 24, 2022 Posted November 24, 2022 (edited) If I have to guess, it's probably one of the what I call Markdown Minefield. MapKey(&Throttle,MSU,0,0); When you post code in the Markdown Idiocy Era, you better do the <pre> </pre>, or use whatever "Code" markup there is available. Edited November 24, 2022 by Hempstead
Steel Jaw Posted November 24, 2022 Author Posted November 24, 2022 well okay but so the code is fine ya think? "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB.
Hempstead Posted November 24, 2022 Posted November 24, 2022 One too many argument, I think. If I remember correctly, the signature is something like MapKey(Device& device, int button, int key);
Lange_666 Posted November 25, 2022 Posted November 25, 2022 (edited) @Steel Jaw: There is indeed an argument to many to be correct but your code should compile fine (it does here, compiler doesn't take that second argument into account if it's a 0) so this line isn't the problem. Look at a line before or after (if you have the arguments on separate lines it could be a few lines up or down. Post a bit more of the script pls... PS: Didn't i tell you before to add spaces in between the arguments to increase readability and error solving? You lazy bastard you... Edited November 25, 2022 by Lange_666 1 Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind pedals, TrackIR4, Rift-S, Elgato Streamdeck XL. Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!
Steel Jaw Posted November 25, 2022 Author Posted November 25, 2022 4 hours ago, Lange_666 said: @Steel Jaw: Look at a line before or after (if you have the arguments on separate lines it could be a few lines up or down. That was it, thanks, brother, the code line above was missing a closing ). Cheers. "You see, IronHand is my thing" My specs: W10 Pro, I5/11600K o/c to 4800 @1.32v, 64 GB 3200 XML RAM, Red Dragon 7800XT/16GB.
Recommended Posts