C coding quick question
I am REALLY new to this, and ive been trying learn how to code in C/C++ , i have a little bit of a clue of what im doing,but not much. I just wanted to know if im doing this right. Ive been reading tutorials on how to do C/C++ so yes i am most def. a beginner, and i was just messing around with stuff, just to see if it was correct, so yeah. All i did was copy the "otmp" and all that and put in the DELETE_OBJECT and change the object hash(its a car now). Thats all, and i wanted to know if it was correct. If not, can you please show me.
// IS THE CODE BELOW THIS EVEN CLOSE TO BEING CORRECT??????????
Not quite. You're also not attaching a vehicle, you're attaching a vehicle model as an object...which is bad. What are you trying to accomplish with this?
DELETE_OBJECT_FROM_PED is not a valid GTA native function. See all of them here: List of native functions - GTAModding
Instead you would do: DELETE_OBJECT(&otmp);
This options only bad for ps3 it doesn't happen on xbox which is kinda strange plus he posted this on xbox forum which i answered the same so im assuming its for xbox.
Originally Posted by creighton