• Portal
  • Forums
  • Shop
  • Statistics
    • Players
      Games
      Maps
      Top
      Levels
      Countries
  • GameServer
  • Downloads
  • Discord
  • Logs
    • Chat
      Warns
      Bans
  • Search
  • Extras
    • Forum Members
      Team Members
      Stats For Nerds
      Recover Account
      Calendar
      Help
      Forum stats
      View New Posts
      View Today's Posts
Reign of the Undead - Revolution
Login to account Create an account
Login
Username:
Password: Lost Password?
 

Dear Guest!
Please sign up or login to use all features of the website.

  Reign of the Undead - Revolution Development Modding & Mapping Uninitialized Variable in C Argument ???

Thread Modes
Uninitialized Variable in C Argument ???
CrazyCoder Offline
Basic Hunter
*
Posts: 9
Threads: 6
Joined: Sep 2017
Thanks given: 0
Thanks received: 1
#1
03-18-2018, 01:23 AM (This post was last modified: 03-18-2018, 01:46 AM by CrazyCoder.)
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:Tonguelayerkilled(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-Mo...ee/Testnet
Find
Reply
Thanks given by:
fabio Offline
Leader & Developer
*******
Administrators
Posts: 2,301
Threads: 107
Joined: Jul 2012
Thanks given: 275
Thanks received: 553
#2
03-18-2018, 09:07 PM
What errors do you get?

How did you override the callbacks? Normally you don't have to edit the callbacks
[Image: button_premium.png]         [Image: button_coins.png]         [Image: button_double-xp.png]

[Image: u-4]
Website Find
Reply
Thanks given by:
CrazyCoder Offline
Basic Hunter
*
Posts: 9
Threads: 6
Joined: Sep 2017
Thanks given: 0
Thanks received: 1
#3
03-19-2018, 03:11 AM
(03-18-2018, 09:07 PM)fabio Wrote: What errors do you get?

How did you override the callbacks? Normally you don't have to edit the callbacks

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)
{
// code here
}
Find
Reply
Thanks given by:
fabio Offline
Leader & Developer
*******
Administrators
Posts: 2,301
Threads: 107
Joined: Jul 2012
Thanks given: 275
Thanks received: 553
#4
03-19-2018, 09:35 AM (This post was last modified: 03-19-2018, 09:35 AM by fabio.)
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
Something ( self.origin, model)

// the method
Something (origin, model)
{
// code here
// level.mm2_something_range = defined
// model.range = defined
}
[Image: button_premium.png]         [Image: button_coins.png]         [Image: button_double-xp.png]

[Image: u-4]
Website Find
Reply
Thanks given by:
Share Thread:    


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)

  • Contact Us
  • Forum team
  • Forum stats
  • Return to Top
 
  • RSS Syndication
  • Lite mode
  • Home
  • Help
 
© Copyright 2025 by MODS-Clan
www.modszombies.com



Linear Mode
Threaded Mode