Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Script Request  () 1 Vote
Re: Script Request [message #330778 is a reply to message #330103] Fri, 16 May 2008 13:57 Go to previous messageGo to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma:
General (5 Stars)
Well GameObject* obj should be a valid game object, and your just giving it a float with the value 0.0, which will either be translated as NULL by the function and fail safely, or will cause Renegade to crash due to trying to access an invalid pointer.


Assuming Int ID refers to the player ID you should be able to use something like GetPlayerByID ( ID ) to get the GameObject* to pass to the function. The function name might be slightly different to that, this is just off the top of my head.




EDIT: Wait, nvm, you not even using that first parameter for some reason, so I don't think you have the right function definition there...


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Fri, 16 May 2008 14:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Questions on scripting.
Next Topic: Commands
Goto Forum:
  


Current Time: Mon Jan 27 07:26:38 MST 2025

Total time taken to generate the page: 0.01418 seconds