Jump to content

My Car Spawner V3, not working


Recommended Posts

0ADC junkie! tounge.gif

 

Yeh don't have to have wait 0 after every label.. in fact, doing this slows down the mod considerably. They're only needed once per loop.

 

 

 

0000: NOPthread 'CARSPAWNERV3'

 

 

The great thing about 2 blank bytes at the start of a script is that you don't have to use 03A4!

 

Remove the thread naming. It just takes up precious bytes of your RAM lol.gif

 

 

And by the way.. WHAT doesn't work?

Did you consider how the logic works in your code? Based on your code:

First you type "ENABLE"

Then you either type "SINGLE" or "MULTIPLE" to continue

Then you either type "1" to "9" to continue

Then you have to press key 48, but if you don't press it, your code will make a series of jumps and crash if the model isn't loaded soon enough.

 

Did your game crash?

No simply it didn't do anything tounge.gif But adding custom GXT should help us point to were the prob is smile.gif -Destroys lots of wait 0s and puts separate thing to load model-

 

P.S. I dunt wanna remove the thread naming coz if I do then compile and elease to the world then if they decompile it will be easy for them to understand but with thread naming it changes all thread names to CARSPAWNERV3_21 etc. But you already know that tounge.gif

 

P.S 2 I tried to save lots of stuff by using 5@ tounge.gif

 

 

WAIT! I think I found prob.. selectvehile doesnt jump to spawn vehicle ;P

 

EDIT : IT WORKS!!! Just need to add custom text smile.gif

Edited by Anurag_Anmol

 

P.S. I dunt wanna remove the thread naming coz if I do then compile and elease to the world then if they decompile it will be easy for them to understand but with thread naming it changes all thread names to CARSPAWNERV3_21 etc. But you already know that tounge.gif

Actually if you don't name the thread and compile then the people who decompile will see it as NoName_11 etc.

Yeah, naming the thread makes very little difference.

 

And if you really do want to leave 03AF there, you can get rid of 0000... Which saves 2 bytes of the 18 bytes you are wasting by naming the thread.

 

You could also use double quote tags (" ") instead of single quote tags (' ') on all your strings, since they save a lot more bytes and make no difference to most opcodes, such as 03AF.

 

I'm an optimization junkie... snort snort.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.