Raised This Month: $ Target: $400
 0% 

CarMod v2.01


Post New Thread Reply   
 
Thread Tools Display Modes
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 05-18-2006 , 14:58  
Reply With Quote #31

Suggestion: Try to make the code more dynamic.
Things like
Code:
new Float:minbox[3] = { -2.5, -2.5, -2.5 }    new Float:maxbox[3] = { 2.5, 2.5, -2.5 }    new Float:angles[3] = { 0.0, 0.0, 0.0 }    new Float:pangles[3]    entity_get_vector(id,EV_VEC_angles,pangles)    angles[1] = pangles[1]    entity_set_vector(car,EV_VEC_mins,minbox)    entity_set_vector(car,EV_VEC_maxs,maxbox)    entity_set_vector(car,EV_VEC_angles,angles)    entity_set_float(car,EV_FL_dmg,0.0)    entity_set_float(car,EV_FL_dmg_take,0.0)    entity_set_float(car,EV_FL_max_health,99999.0)    entity_set_float(car,EV_FL_health,99999.0)    entity_set_int(car,EV_INT_solid,SOLID_TRIGGER)    entity_set_int(car,EV_INT_movetype,MOVETYPE_NONE)    entity_set_string(car,EV_SZ_targetname,itemname)    entity_set_string(car,EV_SZ_classname,"item_car")
are repeated 3 or 4 times in your code. There is no need to waste memory. Make 1 function that will get triggered upon certain things and save the space. It will make the code more readable and use less cpu/memory
Freecode is offline
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 05-18-2006 , 17:07  
Reply With Quote #32

She*

And i moved it because u should organize ur code
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 05-19-2006 , 19:42  
Reply With Quote #33

Any server console error messages? Also which type of RP are you running?
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 05-19-2006 , 20:17  
Reply With Quote #34

hes running harbu's rp.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
nerdhunter
New Member
Join Date: Sep 2005
Old 05-27-2006 , 19:36  
Reply With Quote #35

I don't get it. I don't seem to be able to save the cars so when I restart the server, they aren't there.
nerdhunter is offline
aliyes
Member
Join Date: Mar 2006
Old 05-27-2006 , 21:00  
Reply With Quote #36

Hmm when i will use this car "car_corola" Server shuts down and when i use viper gto etc i can see the cars but dont drive with them ? why ?
aliyes is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 05-27-2006 , 22:40  
Reply With Quote #37

Your first error is probably caused by spelling the car name wrong. Its a Toyota Corolla, not Corola. Your second error is because your probably not putting in the right command.

Make sure you fill out ALL of the parameters, 0/1 show if you wish a car to spawn there automatically on server restart/map change.
amx_createcar car_BLAH 0 "STEAM_ID"
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Sutekh
New Member
Join Date: May 2006
Old 05-28-2006 , 01:24  
Reply With Quote #38

I'm having the same problem as Nerd Hunter and i can assure you i am spelling it right in the console. When i do type in amx_createcar car_blah 1 "STEAM ID" it saves in the car.ini but the problem is it changes the 1 to a zero and even if i change that 0 to a 1 in the car.ini file the cars still do not spawn on the map. Freds carmod saves the cars when i add then from the console and there saved in the car.ini but they do not appear when i restart my server so I tried the other version that stevenlafl made and the cars i saved on the map actually saved and appear when i restarted my server but his commands for example "/getout" dont work for me.

Any ideas?
Sutekh is offline
blackops7799
Senior Member
Join Date: May 2006
Old 05-28-2006 , 01:26  
Reply With Quote #39

Can you have passengers with this mod? i was looking at the coding and i say carpool, passenger and getin commands but they dont work. i was just seeing is this is just a work in progress or somthin.

Think you can add a radio too? that would be sweet!?
blackops7799 is offline
Sutekh
New Member
Join Date: May 2006
Old 05-28-2006 , 17:29  
Reply With Quote #40

Never Mind i figured out the problem.
Sutekh is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode