Author Topic: How to kill with CreateBullet without using explosive rounds?  (Read 4280 times)

0 Members and 1 Guest are viewing this topic.

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: How to kill with CreateBullet without using explosive rounds?
« Reply #40 on: July 15, 2010, 01:38:04 pm »
Quote
It works, prolly it's because of some other script you use
That's also debugging if you disable of scripts.
Maybe you just fucked up some setting tho.

Offline Mighty

  • Camper
  • ***
  • Posts: 276
Re: How to kill with CreateBullet without using explosive rounds?
« Reply #41 on: July 15, 2010, 02:08:41 pm »
also, if i use flames in CreateBullet, with No bullet Velocity, just 1 CreateBullet with flames lags the server to s**t

Hmm i had the same problem with flames, but since i changed last variable ("Owner") to an existing one (player must be on the server) everything works fine, no server crushes
xFire: macmil        e-mail: macekmil@gmail.com
My scripts: Accuracy Script       Flashbang       Punishments GUID
            CatchMe Gamemod       AntiFake
            CW System             AntiFakeGUID

DarkCrusade

  • Guest
Re: How to kill with CreateBullet without using explosive rounds?
« Reply #42 on: July 15, 2010, 02:10:23 pm »
Are you running the server on your own computer? If that's so you must keep your scripts very light since you already have all those zombies and stuff.

Server version: 2.6.5

---------------------------

Lesson in debugging your script. Lets say we got this script:

Code: (pascal) [Select]
Procedure AppOnIdle(Ticks:Integer);
var
  i,ii:Byte;
begin
  if (Mine_Enabled = true) then CheckMines();
  for i := 1 to HighestID() do if (GetPlayerStat(i,'Active') = true) then begin
  if (Player[i].Vanish) then
  if (Player[i].VanishTimer = 0) then
    RefreshVanish(i)
  else
        TimedVanish(i);
  if (Player[i].Rage) then
  if (Player[i].RageTimer = 0) then
RefreshRage(i)
else
TimedRage(i);
if (Player[i].Knife) AND (GetPlayerStat(i,'Primary') <> 14) then ForceWeapon(i,14,255,0);
for ii := 1 to HighestID() do if (GetPlayerStat(ii,'Active') = true) AND (Player[i].Spy[ii]) then            DrawSpyInterface(i,ii);
end;
end;

The error lies in one of the procedures being called by AppOnIdle, but the soldatserver won't tell us. Now we put in WriteLn('n') (first WriteLn n = 1, second = 2 ...) after each line to see where the error lies. Now that we know where the error lies we go on with the same tactic and look where the error lies this time. Do this until your script is debugged, it's that simple ;)
« Last Edit: July 15, 2010, 02:15:13 pm by DarkCrusade »

Offline frosty

  • Flagrunner
  • ****
  • Posts: 601
  • Uber Desert Eagle ^^
Re: How to kill with CreateBullet without using explosive rounds?
« Reply #43 on: July 15, 2010, 07:41:34 pm »
nope the server is external on a host, its not on my comp

thanks for the lesson Dark :D ill give it a go, but later, got RL things that need my immediate attention, ill post back later on
check out my server! click here

If at first you don't succeed, Improvise! :D