Node Posted October 5, 2012 Share Posted October 5, 2012 Okay so I have this ultra simple script here. It's a script that gives you all weapons with infinite ammunition, infinite run and sets your health and armour to max. The health, armour and inifnite run opcodes are in a loop (Because even when getting attacked my health/armour will never deplete) I have loaded the models accordingly and set them to execute under a key press along with the money opcode. (I also tried the money opcode in a loop but got the same problem) So when I compile and test these are my problems: 1. If the money opcode is included in my script then the money counter starts to decrease going into the minus area and turning red. 2. If the money opcode isn't included then my game crashes just after loading. Now, I've been coding for just over a year in sanny builder and this is one of those really simple scripts that are c*nts to figure out what the problem is, please help. P.S: The game is San Andreas Link to comment Share on other sites More sharing options...
Michael-Knight1 Posted October 5, 2012 Share Posted October 5, 2012 Just Change 03FE opcode : 03FE: set_actor $PLAYER_ACTOR money 9999999 To This One 0190 0109: player $PLAYER_CHAR money += 9999999 Link to comment Share on other sites More sharing options...
Node Posted October 5, 2012 Author Share Posted October 5, 2012 Just Change 03FE opcode : 03FE: set_actor $PLAYER_ACTOR money 9999999 To This One 0190 0109: player $PLAYER_CHAR money += 9999999 I forgot to mention that I have already tried that. Link to comment Share on other sites More sharing options...
Jack Posted October 5, 2012 Share Posted October 5, 2012 (edited) Hey Sorrow you forgot to put "if and" instead of "if" at label "NONAME_106". EDIT: And about the money: I tried 0109 opcode and it worked at my PC. Also I think it's better to use higher delay then wait 0 when using key opcodes because when you use wait 0 the money and ammo increases almost forever. By the way if the opcodes can't help you try to find a mem address for the money - that value is changeable - it shouldn't be hard to find it. Edited October 5, 2012 by JACK JONES Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Michael-Knight1 Posted October 5, 2012 Share Posted October 5, 2012 Just Change 03FE opcode : 03FE: set_actor $PLAYER_ACTOR money 9999999 To This One 0190 0109: player $PLAYER_CHAR money += 9999999 I forgot to mention that I have already tried that. But the script it work for my pc very fine when i press 1 in keyboard i'll take the following weapons + inlimted ammo and $ 99999999 . PS : change IF to IF AND here :NONAME_106wait 0if Model.Available(#KATANA) Model.Available(#MOLOTOV) Model.Available(#DESERT_EAGLE) Model.Available(#SAWNOFF) Model.Available(#MP5LNG) Model.Available(#AK47) Model.Available(#SNIPER) Model.Available(#MINIGUN)jf @NONAME_106 Link to comment Share on other sites More sharing options...
Bad.boy! Posted October 5, 2012 Share Posted October 5, 2012 You should also release the loaded models. And about loading: post 1 post 2 post 3 post 4 Seriously why does everyone seem to do this lately? Link to comment Share on other sites More sharing options...
Jack Posted October 5, 2012 Share Posted October 5, 2012 Use "038B: load_requested_models" OR "0248: model #MP5LNG available". Using both is a complete waste of memory. Then why all tutorials using both ways and not to mention main.scm file which also has both ways in loading parts? Don't get me wrong - I'm not questioning your coding skils - I'm just confused. Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Link2012 Posted October 5, 2012 Share Posted October 5, 2012 Then why all tutorials using both ways All tutoriais are using both way because... hm, I don't know... Maybe in the year they didn't know really what 038B did. and not to mention main.scm file which also has both ways in loading parts? SA Main.scm has only one way, I mean, When they use 038B they don't check for the model\animation availability and vice versa. As badboyl say everytime, Use 038B OR 0248. When using 038B you can be sure that the model is loaded, but in old computers it can cause a slowdown in the 038B time (And of course while faded out this slowdown is not visible ) Link to comment Share on other sites More sharing options...
Jack Posted October 5, 2012 Share Posted October 5, 2012 (edited) SA Main.scm has only one way I was talking about VC main.scm but never mind. Just one more thing: We all know that max number of conditions is 9 so if I decide to use only 038B way then is it relevant how much model requests I put with 0247? I mean can I put for exmpl 20 (which I've never tried btw). Edited October 5, 2012 by JACK JONES Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Link2012 Posted October 5, 2012 Share Posted October 5, 2012 SA Main.scm has only one way I was talking about VC main.scm but never mind. Just one more thing: We all know that max number of conditions is 9 so if I decide to use only 038B way then is it relevant how much model requests I put with 0247? I mean can I put for exmpl 20 (which I've never tried btw). Probably in VC the opcode do the same (since the command name is LOAD_ALL_MODELS_NOW), R* just tried to make sure... with a unnecessary check, but in SA they wake up that the check was not necessary. More models = more time to load, and since 038b stops everything to load the models, the time that 038b will have to return depends on the quantity of models to load. Link to comment Share on other sites More sharing options...
Jack Posted October 5, 2012 Share Posted October 5, 2012 OK thanks . Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now