ajidehak Posted August 3, 2011 Share Posted August 3, 2011 (edited) i want to create this mod for nfs mod because when u go in street maybe u not see any fashion car, good , i create it but when i want reset traffic to default gta it not reset anybody can help me? this is my code: {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'CARLOAD':CARLOAD_11wait [email protected] = 00734: reset_random_car_generator_models0209: [email protected] = random_int_in_ranges 0 [email protected] >= 4jf @CARLOAD_123wait [email protected] = 00209: [email protected] = random_int_in_ranges 0 11gosub @CARLOAD_134:CARLOAD_78if not Model.Available([email protected])jf @CARLOAD_79Model.Load([email protected])038B: load_requested_modelswait 0jump @CARLOAD_78:CARLOAD_7909BF: set_random_traffic_spawn_to_model [email protected] // Load the vehicle model before using thisModel.Destroy([email protected])jump @CARLOAD_11:CARLOAD_123wait 0jump @CARLOAD_11:CARLOAD_134wait [email protected] == 0jf @[email protected] = 558return:CARLOAD_166wait [email protected] == 1jf @[email protected] = 559return:CARLOAD_198wait [email protected] == 2jf @[email protected] = 560return:CARLOAD_230wait [email protected] == 3jf @[email protected] = 561return:CARLOAD_262wait [email protected] == 4jf @[email protected] = 562return:CARLOAD_294wait [email protected] == 5jf @[email protected] = 565return:CARLOAD_326wait [email protected] == 6jf @[email protected] = 534return:CARLOAD_358wait [email protected] == 7jf @[email protected] = 535return:CARLOAD_390wait [email protected] == 8jf @[email protected] = 536return:CARLOAD_422wait [email protected] == 9jf @[email protected] = 567return:CARLOAD_454wait [email protected] == 10jf @[email protected] = 575return:CARLOAD_486wait [email protected] == 11jf @[email protected] = 576return:CARLOAD_518wait 0return Edited August 6, 2011 by ajidehak Link to comment Share on other sites More sharing options...
ZAZ Posted August 3, 2011 Share Posted August 3, 2011 It's not possible to use [email protected] in a thread of a *.cs file because you can use only local vars from [email protected] - [email protected] replace every [email protected] with [email protected] then it works i have tested it with 423 (ID number of mrwhoop) i replaced all your IDs with 423 to see an effect and it worked then i tested it with 433 (ID number of barracks) and it crashed then i tested with 434 (ID number of hotknife) and it worked CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ajidehak Posted August 3, 2011 Author Share Posted August 3, 2011 (edited) hi zaz your mods very good and u great scripter ok,i use [email protected] and [email protected] in other mods without any problem, and in this mod i think crash not related to [email protected] ,it for not load default traffic and game crash, but my question this: why default traffic not load, and what opcode of it? tanks for comment Predicted: zaz post a comment and i answer and then rastakilla post a new commet for request my mod then i answer to he and realease my mod. Edited August 5, 2011 by ajidehak Link to comment Share on other sites More sharing options...
ZAZ Posted August 3, 2011 Share Posted August 3, 2011 (edited) ok,i use [email protected] and [email protected] in other mods without any problem that can not be true unless in mission scripts sanny gives an error message if you wanna compile your posted script with [email protected] it's possible to compile if you change {$CLEO .cs} into {$CLEO .cm} why default traffic not load because the traffic is set to specified models try this to change back to normal random traffic 09BF: set_random_traffic_spawn_to_model -1 Edited August 3, 2011 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ajidehak Posted August 4, 2011 Author Share Posted August 4, 2011 u very fast in answer,tanks for it. my sanny not eror for it, i try on your way and back, again tanks for answer. Link to comment Share on other sites More sharing options...
rastakilla Posted August 5, 2011 Share Posted August 5, 2011 You gonna release this mod when your done? I would like to try it Link to comment Share on other sites More sharing options...
ajidehak Posted August 5, 2011 Author Share Posted August 5, 2011 (edited) yes, i now realese this mod, because zaz very help to me, and now game without any crash, i must thank of zaz for help to me, i add this line:"09BF: set_random_traffic_spawn_to_model -1" in my code and now it good work, but i not understand [email protected] , [email protected] and other bigger [email protected] in my sanny not crash but because u very great scripter, i change all [email protected] to [email protected] . tanks zaz anybody know , when i want to release this topic in mod showroom , how? if possible learn me if not i create new topic. Edited August 6, 2011 by ajidehak Link to comment Share on other sites More sharing options...
fireguy109 Posted August 5, 2011 Share Posted August 5, 2011 Yeah, just create a new topic and name it [REL] Custom car traffic mod Make the topic here or maybe here. Only choose one though. Link to comment Share on other sites More sharing options...
ajidehak Posted August 6, 2011 Author Share Posted August 6, 2011 (edited) thanks for reply. i created it in mod showroom:random fashion cars Edited August 6, 2011 by ajidehak Link to comment Share on other sites More sharing options...