dexolus 12 Posted February 16, 2022 Share Posted February 16, 2022 Hi. I added some new mounts. Some of them working normally but some of them i cant ride with ctrl g but only click on them to ride.. I set them the same.. Can anybody help me please? Link to comment Share on other sites More sharing options...
Developer Mitachi 1455 Posted February 17, 2022 Developer Share Posted February 17, 2022 (edited) In cmd_general.cpp search and post here this function: ACMD(do_ride) { ... } It is in this function that what you say happens, in fact the CTRL + G command starts this command from player. Edited February 17, 2022 by Mitachi 1 Link to comment Share on other sites More sharing options...
dexolus 12 Posted February 17, 2022 Author Share Posted February 17, 2022 Hi, im sorry i found it like 10 minutes before u write me here. THanks for response. My problem was bad type and subtype in database. When i set it corectly it works now Thank you and have a nice day Link to comment Share on other sites More sharing options...
Developer Mitachi 1455 Posted February 17, 2022 Developer Share Posted February 17, 2022 1 minute ago, dexolus said: Hi, im sorry i found it like 10 minutes before u write me here. THanks for response. My problem was bad type and subtype in database. When i set it corectly it works now Thank you and have a nice day My mistake, I read that you had inserted a new mount system, not a new mount. This is why I thought the problem stemmed from the code. Anyway well, you have solved Link to comment Share on other sites More sharing options...
dexolus 12 Posted February 17, 2022 Author Share Posted February 17, 2022 No problem thanks for trying to help anyways. But i wonder if anyone know. Why some mounts work normaly with type 18 and some not.. Link to comment Share on other sites More sharing options...
Developer Mitachi 1455 Posted February 17, 2022 Developer Share Posted February 17, 2022 Because the various types are linked to subtypes, such as in Srcs/Server/db/ProtoReader.cpp int get_Item_SubType_Value(int type_value, string inputString) { ... static string arSub16[] = { "UNIQUE_NONE", "UNIQUE_BOOK", "UNIQUE_SPECIAL_RIDE", ... You probably use UNIQUE_SPECIAL_RIDE, which is a subtype that is part of array number arSub16 Link to comment Share on other sites More sharing options...
dexolus 12 Posted February 17, 2022 Author Share Posted February 17, 2022 Thanks for help i will look at it Have a nice day Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now