BennyBunny Posted August 5, 2011 Share Posted August 5, 2011 HI! I have done a ped script and this script crash my GTA SA! In the server log is no crash only a [Timed out ] when i get an error message from GTA SA. This is the error message: And here is the part where make the crash: function pedcheckweaponped1 ( attacker, weapon, thePlayer ) local px,py,pz = getElementPosition( pedsex1 ) if py > 2334 or py < 2332 then setElementPosition ( pedsex1, 1214.2491699219, -4.9254320144653, 1000.6) end setElementHealth ( pedsex1, 1000 ) setPedAnimation (pedsex1, "STRIP", "STR_C1", -1, true, true, true ) end addEventHandler ( "onClientPedDamage", getRootElement(), pedcheckweaponped1 ) IDK where is the problem here?? Link to comment
BennyBunny Posted August 5, 2011 Author Share Posted August 5, 2011 And here is my create ped script: function pedsexparty1 () pedsex1 = createPed(87, -2225.376953125, 2333.6584472656, 7.546875) setPedAnimation (pedsex1, "STRIP", "STR_C1", -1, true, true, true ) setPedRotation ( pedsex1, 10000 ) pedsex2 = createPed(238, -2225.376953125, 2340.6584472656, 7.546875) setPedAnimation (pedsex2, "STRIP", "STR_B2C", -1, true, true, true ) setPedRotation ( pedsex2, 8000 ) end addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), pedsexparty1 ) I found out when i have only one ped is that no problem only 2+ crash my game! Link to comment
DiSaMe Posted August 5, 2011 Share Posted August 5, 2011 That's not because of your script. Peds used to crash the game for me too, but after some 1.1 nightly build, I don't have this problem anymore, so the bug must have been fixed in MTA SA 1.1. Link to comment
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