Author Topic: What is wrong ?  (Read 3722 times)

0 Members and 1 Guest are viewing this topic.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
What is wrong ?
« on: February 06, 2010, 01:48:56 pm »
if (NumPlayers=1) then
begin
    if (AlphaPlayers=1) then Command('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Slicer Zombie')
                                                  ('/addbot2 Burning Zombie')
                                                  ('/addbot2 Taliban')
                                                  end;
if (NumPlayers=2) then
begin
    if (AlphaPlayers=2) then Command('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Slicer Zombie')
                                                  ('/addbot2 Burning Zombie')
                                                  ('/addbot2 Taliban')
                                                  ('/addbot2 Serker Zombie')
                                                  end;

//////////////////////////////////////////////////////////////////////////////////
WHAT'S WRONG ??? ??? ??? ???
                                         
« Last Edit: February 06, 2010, 01:52:03 pm by mich1103 »

Offline Horve

  • Flagrunner
  • ****
  • Posts: 692
  • Vig
Re: What is wrong ?
« Reply #1 on: February 06, 2010, 02:01:20 pm »
NumPlayers = players and bots together
try (NumPlayers - NumBots) in stead of just NumPlayers

and I'm not sure, but doesn't command already do >> /  << at the beginning?
« Last Edit: February 06, 2010, 02:03:19 pm by Horve »

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: What is wrong ?
« Reply #2 on: February 06, 2010, 02:11:36 pm »
Uhh, you didnt specify the procedure.

Please, take a look at some other scripts to see how should the syntax should look.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: What is wrong ?
« Reply #3 on: February 06, 2010, 02:15:47 pm »
can you make my script work please ????

do i need to do that ? :

///////////////////////////////////////////////////////////////////
procedure ActivateServer();
begin
if (NumPlayers=1) then
begin
    if (AlphaPlayers=1) then Command('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Slicer Zombie')
                                                  ('/addbot2 Burning Zombie')
                                                  ('/addbot2 Taliban')
                                                  end;
if (NumPlayers=2) then
begin
    if (AlphaPlayers=2) then Command('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Slicer Zombie')
                                                  ('/addbot2 Burning Zombie')
                                                  ('/addbot2 Taliban')
                                                  ('/addbot2 Serker Zombie')
                                                  end;
/////////////////////////////////////////////////////////////////////////
« Last Edit: February 06, 2010, 02:28:06 pm by mich1103 »

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: What is wrong ?
« Reply #4 on: February 06, 2010, 02:43:49 pm »
READ THIS: http://enesce.com/help/
THE DESCRIPTIONS
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: What is wrong ?
« Reply #5 on: February 06, 2010, 02:53:52 pm »
why that's dont work :

procedure OnJoinGame(ID, Team: byte)
begin
if (NumPlayers=1) then
begin
    if (AlphaPlayers=1) then Command('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Slicer Zombie')
                                                  ('/addbot2 Burning Zombie')
                                                  ('/addbot2 Taliban')
                                                  end;
if (NumPlayers=2) then
begin
    if (AlphaPlayers=2) then Command('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Zombie')
                                                  ('/addbot2 Slicer Zombie')
                                                  ('/addbot2 Burning Zombie')
                                                  ('/addbot2 Taliban')
                                                  ('/addbot2 Serker Zombie')

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: What is wrong ?
« Reply #6 on: February 06, 2010, 03:00:36 pm »
Omfg, maybe because you do not read other peoples posts?
Go and learn scripting slowly, with little parts, like when a player types /lol it says "Swompie laughing out loud! LOL!".
Also use this button for codes.

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: What is wrong ?
« Reply #7 on: February 06, 2010, 03:04:46 pm »
DESCRIPTIONS FOR F**K SAKE

READ THEM

Just do it with
Code: [Select]
procedure OnJoinTeam(ID, Team: byte)
begin

if (AlphaPlayers=1) then
   begin
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Slicer Zombie');
Command('/addbot2 Burning Zombie');
Command('/addbot2 Taliban');
end;

if (AlphaPlayers=2) then
   begin
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Slicer Zombie');
Command('/addbot2 Burning Zombie');
Command('/addbot2 Taliban');
end;

end;

This is the last time i will edit your scripts, i swear to god with that.
« Last Edit: February 06, 2010, 03:08:43 pm by croat1gamer »
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: What is wrong ?
« Reply #8 on: February 06, 2010, 04:44:12 pm »
thanks man   ;D 
i will try to learn pascal




is not to be bad with you but the script you have post doesn't work too.

i put OnScriptCrash:1

and when i start my server with this script my server automaticly shutdown ...




« Last Edit: February 06, 2010, 05:03:26 pm by mich1103 »

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
Re: What is wrong ?
« Reply #9 on: February 06, 2010, 05:25:13 pm »
Try this
Code: (pascal) [Select]
procedure OnJoinTeam(ID, Team: byte);
begin

if (AlphaPlayers=1) then
   begin
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Slicer Zombie');
Command('/addbot2 Burning Zombie');
Command('/addbot2 Taliban');
end;

if (AlphaPlayers=2) then
   begin
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Zombie');
Command('/addbot2 Slicer Zombie');
Command('/addbot2 Burning Zombie');
Command('/addbot2 Taliban');
end;

end;

He forgot a semicolon after OnJoinTeam.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: What is wrong ?
« Reply #10 on: February 06, 2010, 05:49:53 pm »
that's dont work too
my server shut down automatibly whne i start my server

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: What is wrong ?
« Reply #11 on: February 06, 2010, 06:33:11 pm »
i put OnScriptCrash:1
If you mean the OnScriptCrash from server.ini, it's values are "ignore", "shutdown" and "recompile" as far as I know.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: What is wrong ?
« Reply #12 on: February 06, 2010, 07:38:33 pm »
euuhhhh i dont understand


i just want to know why the script dont work .

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: What is wrong ?
« Reply #13 on: February 06, 2010, 07:53:06 pm »
He forgot a semicolon after OnJoinTeam.
My bad.

Use what vince wrote, make sure that THIS script is the problem cause.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: What is wrong ?
« Reply #14 on: February 06, 2010, 08:02:07 pm »
doesn't work too


i use the script of VinceBros
and that's dont work

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: What is wrong ?
« Reply #15 on: February 06, 2010, 08:17:20 pm »
Make sure that THIS script is the cause for the problem.

What do the logs say?
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline mich1103

  • Flagrunner
  • ****
  • Posts: 557
  • Did you say chocolate ? O.o
    • ZoMbIe-DeStRoYeR pk server
Re: What is wrong ?
« Reply #16 on: February 06, 2010, 08:22:26 pm »
I found it :
 :o  :o  :o  :o  :o


10-02-06 20:20:02    Console Log Started
10-02-06 20:20:02 Loaded weapons mod "Default mod v1.5"
10-02-06 20:20:02 Welcome to Soldat 1.5.0
10-02-06 20:20:02 
  • ScriptCore v2.6 loaded! Found 17 scripts...

10-02-06 20:20:02 
  • Compiling Admin Invincibility -> Invin.pas...

10-02-06 20:20:02 
  • Compiling autobot -> ab.pas...

10-02-06 20:20:02 
  • autobot -> [Error] (2:1): 'BEGIN' expected

10-02-06 20:20:02 
  • Compiling blank -> LogInSystem.pas...

10-02-06 20:20:02 
  • Compiling commands -> commands.pas...

10-02-06 20:20:02 
  • Compiling CriticalHit -> ch.pas...

10-02-06 20:20:02 
  • Compiling default -> Core.pas...

10-02-06 20:20:02 
  • Compiling default -> NetworkCore.pas...

10-02-06 20:20:02 
  • Compiling default -> AdminCore.pas...

10-02-06 20:20:02 
  • Compiling Invisibility -> Invis.pas...

10-02-06 20:20:02 
  • Compiling log -> log.pas...

10-02-06 20:20:02 
  • Compiling Medic -> Medic.pas...

10-02-06 20:20:02 
  • Compiling MoveTeam -> MoveTeam.pas...

10-02-06 20:20:02 
  • Compiling Nextmap -> core.pas...

10-02-06 20:20:02 
  • Compiling slicerzombie -> sz.pas...

10-02-06 20:20:02 
  • Compiling SpecialBots -> SpecialBots.pas...

10-02-06 20:20:02 
  • Compiling sprees -> spree.pas...

10-02-06 20:20:02 
  • Compiling subadmin -> sub.pas...

10-02-06 20:20:02 
  • Compiling Taliban -> Taliban.pas...

10-02-06 20:20:02 
  • Compiling Weapon_shop -> Weapon_shop.pas...

10-02-06 20:20:02 
  • Compilation Failed.

10-02-06 20:20:02 Shutting down server...
10-02-06 20:20:02 Shutting down admin server...
10-02-06 20:20:02 Shutting down ScriptCore...


Compiling autobot -> ab.pas...
10-02-06 20:20:02 
autobot -> [Error] (2:1): 'BEGIN' expected
« Last Edit: February 06, 2010, 09:43:48 pm by mich1103 »

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: What is wrong ?
« Reply #17 on: February 06, 2010, 10:04:12 pm »
Your autobot script is doing the problem.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.

Offline Horve

  • Flagrunner
  • ****
  • Posts: 692
  • Vig
Re: What is wrong ?
« Reply #18 on: February 06, 2010, 11:43:51 pm »
in your autobot script, the error is in the very first line. The script wants you to include begin somewhere, as you don't have it typed.

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: What is wrong ?
« Reply #19 on: February 07, 2010, 05:51:10 am »
The problem is obviously like in his zombie adding script, as he cant write the syntax properly.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.