Author Topic: ZRPG missile buggg ...  (Read 1311 times)

0 Members and 1 Guest are viewing this topic.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
ZRPG missile buggg ...
« on: February 11, 2010, 06:09:06 pm »
when i use missile my server shutdown

10-02-11 18:04:53 /missile(192.168.0.1[[ -^- -pk0wn3d- -^- ]])
10-02-11 18:04:55 
  • [Error] ZRPG -> (OnPlayerDamage): Out Of Range

10-02-11 18:04:55 Shutting down server...
10-02-11 18:04:55 Shutting down FileServer...
10-02-11 18:04:56 Shutting down admin server...
10-02-11 18:04:56 Admin disconnected (192.168.0.1).
10-02-11 18:04:56 Shutting down ScriptCore...

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: ZRPG missile buggg ...
« Reply #1 on: February 11, 2010, 06:16:53 pm »
My old script sucks, and missile is HIGHLY unstable even when it doesnt cause the above error, it is not in my new script.

It is probably a problem with the targeting function. I have no idea what version of my old script your using, so please attach it (just the .pas file) to a reply and ill see whats wrong.


Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: ZRPG missile buggg ...
« Reply #2 on: February 11, 2010, 06:24:30 pm »
there is ...

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: ZRPG missile buggg ...
« Reply #3 on: February 11, 2010, 06:34:14 pm »
That is only 164 lines out of the like 4000+ it should be. It doesnt have anything to do with missile in it. Maby you left the page while it was uploading?


Offline mich1103

  • Flagrunner
  • ****
  • Posts: 558
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: ZRPG missile buggg ...
« Reply #4 on: February 11, 2010, 06:37:48 pm »
??? i dont understand  :-\  :-\  :-\

Offline dnmr

  • Camper
  • ***
  • Posts: 315
  • emotionally handicapped
Re: ZRPG missile buggg ...
« Reply #5 on: February 12, 2010, 03:06:55 am »
??? i dont understand  :-\  :-\  :-\
paste all code here: http://pastebin.ca/
and give us link so we see it

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: ZRPG missile buggg ...
« Reply #6 on: February 12, 2010, 09:06:50 am »
That is only 164 lines out of the like 4000+ it should be. It doesnt have anything to do with missile in it. Maby you left the page while it was uploading?
My bet is that he cut out almost everything.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: ZRPG missile buggg ...
« Reply #7 on: February 12, 2010, 02:28:00 pm »
Easy fix: Comment out the missile command.

Code: [Select]
{if getpiece(text,' ',1) = 'missile' then begin
if players[ID].missile < 5 then if players[ID].lvl >= amissile[players[ID].missile+1].minlvl then begin
if players[ID].spts < amissile[(players[ID].missile+1)].cost then WriteConsole(ID,'You do not have enough skill points!',$ff55ff55);
if players[ID].spts >= amissile[(players[ID].missile+1)].cost then begin
dec(players[ID].spts,amissile[(players[ID].missile+1)].cost);
WriteConsole(ID,'You learned Missile level ' + inttostr(players[ID].missile+1) + ' for ' + inttostr(amissile[(players[ID].missile+1)].cost) + ' skill points',$ff55ff55);
inc(players[ID].missile,1);
exit;
end;
end;
if players[ID].missile = 5 then WriteConsole(ID,'Skill is already at its max level!',$ff55ff55);
if players[ID].lvl < amissile[players[ID].missile+1].minlvl then WriteConsole(ID,'You are not high enough level! The minumum level is '+ inttostr(amissile[players[ID].missile+1].minlvl),$ff55ff55);
end;}
(line 3150-3162)


Offline tk

  • Soldier
  • **
  • Posts: 235
Re: ZRPG missile buggg ...
« Reply #8 on: February 12, 2010, 02:40:29 pm »
Quote
10-02-11 18:04:53 /missile(192.168.0.1[[ -^- -pk0wn3d- -^- ]])
10-02-11 18:04:55 
[Error] ZRPG -> (OnPlayerDamage): Out Of Range

Quote
and missile is HIGHLY unstable even when it doesnt cause the above error

Missile is 100% stable, (may only cause a lag if not used properly) and does not cause the error because it's not launched from OnPlayerDamage

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: ZRPG missile buggg ...
« Reply #9 on: February 12, 2010, 03:29:49 pm »
It uses a thread, SoldatPascal threads are very unstable.