Author Topic: Question Thread  (Read 28422 times)

0 Members and 1 Guest are viewing this topic.

DarkCrusade

  • Guest
Re: Question Thread
« Reply #260 on: June 08, 2010, 10:39:13 am »
Well, Squiddy, I know that and it looks almost exactly like your code, but there seems to be a problem with loading the stuff from the .ini and I really don't get why..

EDIT:

I used ';' at the end of each line in the settings.ini..
« Last Edit: June 08, 2010, 12:27:10 pm by DarkCrusade »

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: Question Thread
« Reply #261 on: June 08, 2010, 03:01:51 pm »
Do your zombie survival script is done ?

DarkCrusade

  • Guest
Re: Question Thread
« Reply #262 on: June 08, 2010, 11:46:26 pm »
Still in work ;)

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: Question Thread
« Reply #263 on: June 09, 2010, 04:01:48 pm »
ok... so good working  :P
i can't wait to play your server :D

DarkCrusade

  • Guest
Re: Question Thread
« Reply #264 on: July 17, 2010, 06:35:25 am »
I am working on enchantments for custom maps. You will be able to fire in a set interval between 2 spawn points or spawn objects. But I seem to be a master in getting the strangest and most exotic errors:

Code: [Select]
10-07-17 13:27:42  [*] [Error] MapEnchantments -> (AppOnIdle): Could not call proc
You can find the code here. The procedure that causes the error is DeltaFireRegionTrigger().

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: Question Thread
« Reply #265 on: July 17, 2010, 06:39:04 am »
Wasn't there a similar script already?

DarkCrusade

  • Guest
Re: Question Thread
« Reply #266 on: July 18, 2010, 11:33:45 am »
If you mean this: I don't like it and it works in an other way than mine. While Spkka's script spawns a bullet with no velocity on a random spot between 2 Delta spawns mine fires bullets from one spawn to the other.

EDIT: VestSpawnWeaponTrigger() causes the same error and I don't know what to do..

EDIT2: Why isn't there a built-in GetTime() and GetDate() function? I need them for one of my scripts.

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: Question Thread
« Reply #267 on: July 18, 2010, 12:00:48 pm »
FormatDate...

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Question Thread
« Reply #268 on: July 19, 2010, 06:42:33 pm »
Main answer:
Could not call proc happen always when you're trying to call function on a static array, which is dedicated for dynamic array.
For example, look for this:
Code: [Select]
var
  MyStaticArray: array [0..anything] of byte;
  MyDynamicArray: array of byte;

MyFunction();
var
  i: byte;
begin
  i := GetArrayLength(MyStaticArray); //this will cause error
  i := GetArrayLength(MyDynamicArray); //this won't
  SetArrayLength(MyStaticArray, anything+1); //this will cause error too
  SetArrayLength(MyDynamicArray, anything+1); //this won't
end;

EDIT: VestSpawnWeaponTrigger() causes the same error and I don't know what to do..

Line 69: remove Len and replace it with VestWeaponSpawns. Should work w/o error

Code: [Select]
10-07-17 13:27:42  [*] [Error] MapEnchantments -> (AppOnIdle): Could not call proc
Line 43: remove Len and replace with DeltaFireRegions.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

DarkCrusade

  • Guest
Re: Question Thread
« Reply #269 on: July 20, 2010, 02:09:26 am »
Sounds reasonable, thanks!