Author Topic: Very very need help!about script delete!  (Read 978 times)

0 Members and 1 Guest are viewing this topic.

Offline absoulut1234

  • Major(1)
  • Posts: 30
Very very need help!about script delete!
« on: December 18, 2009, 06:18:37 am »
okey
i am remake this script:Lucky Fighter made by ZOP! http://forums.soldat.pl/index.php?topic=30173.0


but i have a question!
first,i want to delete some script in LUCKY FIGHTER
 
in the script
i delete this:
if GetPlayerStat(i,'Active') = true then begin
      if (GetPlayerStat(i,'Alive') = true) and (PlayerInfo.CurrectClass = 3) then begin   
         GetPlayerXY(i,X,Y);
         VX := GetPlayerStat(i,'VelX');
         VY := GetPlayerStat(i,'VelY');
         VZ := sqrt((VX*VX)+(VY*VY));
        if VZ > 4 then begin
           FX := (VX/VZ)*25;
           FY := (VY/VZ)*25;
          if (GetPlayerStat(i,'Ground') = false) and (GetPlayerStat(i,'Jets') < JetAmount)then begin
             CreateBullet(X-FX,Y-FY,VX*3,VY*3,0,3,0);
             CreateBullet(X-FX,Y-FY,VX*3,VY*3,0,3,0);
             CreateBullet(X-FX,Y-FY,VX*3,VY*3,0,3,0);
             CreateBullet(X-FX,Y-FY,VX*3,VY*3,0,3,0);
             CreateBullet(X-FX,Y-FY,VX*3,VY*3,0,3,0);
             CreateBullet(X-FX,Y-FY,VX*3,VY*3,0,3,0);
             CreateBullet(X-FX,Y-FY,0,0,0,5,0);
          end;
        end;
      end;   



why i delete that?because it make my sever lag and shutdown!
but if i delete that,my soldat deside sever can't work!it  will shutdown!

so,all i want to say and searching help is:how can i delete that and my sever can work?
(briefly,i want to delete that jet will flay fast      this function close!)


who can help me?please!

ps.sorry , my english was worst!

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: Very very need help!about script delete!
« Reply #1 on: December 18, 2009, 07:26:50 am »
CreateBullet(X-FX,Y-FY,VX*3,VY*3,0,3,0);
Server shutdowns because script uses CreateBullet with inactive owner ID. Replace 0 with i.

Offline absoulut1234

  • Major(1)
  • Posts: 30
Re: Very very need help!about script delete!
« Reply #2 on: December 18, 2009, 09:00:13 am »
ya thank you
useful
but i found other way !hehe
just  if VZ > 4 then begin

4 change to more than 10(because this script maxlevel is 10 ) :P

so  change to more than 10 this will not work!and don't delete anything!
great,right?

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Very very need help!about script delete!
« Reply #3 on: December 18, 2009, 11:14:13 am »
so  change to more than 10 this will not work!and don't delete anything!
great,right?
Awesome.

Your server was shutting down because you haven't deleted 1 end;(there are 4 begins and 3 ends)
« Last Edit: December 18, 2009, 11:16:09 am by Gizd »

Offline absoulut1234

  • Major(1)
  • Posts: 30
Re: Very very need help!about script delete!
« Reply #4 on: December 19, 2009, 12:43:10 am »
wow i know!thank you very much!!



but i have  an new problem!!
the LUCKY FIGHTER  script setup:all join game's player(and BOT)' vocation is FIGHTER
you should enter command to change to other vocation!!!


but,i want to fix it
i want to change to : for example,if red team join 4 player,their vocation is different!
one is FIGHTER
one is MEDIC
one is SHIFTER
one is CAPTAIN

like this!
so,i want to say is:i don't want to all player is FIGHTER
because if i play with BOT,they can't change vocation!!so,if i play with them,their vocation all is FIGHTER!
that's BORING!


briefly,who can help me to solve this problem??(help me write it!!)  :'(
i'll very thankful!! ;D

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Re: Very very need help!about script delete!
« Reply #5 on: December 19, 2009, 02:35:02 am »
briefly,who can help me to solve this problem??(help me write it!!:'(
i'll very thankful!! ;D
First, none will. Why? It's your bad english.
Then, try to choose a good caption for your topic, else really none will help you.

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: Very very need help!about script delete!
« Reply #6 on: December 19, 2009, 03:58:30 am »
Like lordkilla said, your english isn't the best, try to write clearly and short (I know explaining is hard for non-eng people sometimes, same to me, but after some time you will get it out).

And another thing to note here, the script your are trying to modify is a larger one, which means, you can't easily change a few lines without making the script get errors on other parts. So the best way here is to contact the autor and ask him to modify/add stuff to this script. Thats my opinion.