Uninitialized Variable in C Argument ??? - Printable Version +- Reign of the Undead - Revolution (https://modszombies.com) +-- Forum: Development (https://modszombies.com/forum-Development) +--- Forum: Modding & Mapping (https://modszombies.com/forum-Modding-Mapping) +--- Thread: Uninitialized Variable in C Argument ??? (/thread-Uninitialized-Variable-in-C-Argument) |
Uninitialized Variable in C Argument ??? - CrazyCoder - 03-18-2018 Keep getting errors when rearranging files and split it them off to own scripts. This seemed to have happened after adding AWE Callback Override into CoD2 Merciless Mod 2. So I don't have to edit each callback from gametype and do "thread _mc2/_player:layerkilled(blah, blah);" It makes it so _players.gsc loads other scripts without cramming everything into gametype files. https://github.com/PlusIce4/Merciless-Mod-2 Going to post the revisions in "Testnet" Branch: https://github.com/PlusIce4/Merciless-Mod-2/tree/Testnet RE: Uninitialized Variable in C Argument ??? - fabio - 03-18-2018 What errors do you get? How did you override the callbacks? Normally you don't have to edit the callbacks RE: Uninitialized Variable in C Argument ??? - CrazyCoder - 03-19-2018 (03-18-2018, 09:07 PM)fabio Wrote: What errors do you get? Made a new thread to explain the callback override. I think my issue may beĀ is putting the level stuff in the parenthesis. Code: Something ( self.origin, model.range, level.mm2_something_range, model) RE: Uninitialized Variable in C Argument ??? - fabio - 03-19-2018 Hm yea that's clearly wrong. You don't have to pass level. variables to other methods. level. variables are globally and accessible everywhere. Additionally you have to define new variable names for the method arguments. For example like this: Code: // we call te method here |