Jump to content
  • 0

Eroare ServerBot


Question

Posted

Deci mam uitat la un tutorial cum sa fac asa ceva am pus sub OnGameModeInit asta:

[pawn]public OnGameModeInit()

{

SetTimer("ServerBot", 300000, 1);

}[/pawn]

Dupaia Am Pus Astea Jos De Tot Ca In Tutorialu Ala:

[pawn]public ServerBot()

{

  new Mesaje;

  Mesaje = random(3);

  switch(Mesaje)

  {

      case 0: { SendClientMessageToAll(0x009999ff, "Vrei Sa Mergi In Locuri Fun? Scrie /teles!"); }

      case 1: { SendClientMessageToAll(0x009999ff, "Scrie /rules Casa Vezi Creatori Serverului!"); }

      case 2: { SendClientMessageToAll(0x009999ff, "Scrie /admins Casa Vezi Admini Online!"); }

  }

}[/pawn]

Si Cand Dau Compile Imi Da Eroarea Asta:

[pawn][D:\RomaniaExtremeStunt\gamemodes\RES.pwn(320) : warning 235: public function lacks forward declaration (symbol "ServerBot")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.[/pawn]

Ajutatima Plss Am Incercat Orice Si Nimic :((

5 answers to this question

Recommended Posts

Posted

adauga forward ServerBot();

Nu Merge Acuma Imi Da Mai Multe Erori:

[pawn]D:\RomaniaExtremeStunt\gamemodes\RES.pwn(753) : error 001: expected token: ";", but found "{"

D:\RomaniaExtremeStunt\gamemodes\RES.pwn(755) : error 010: invalid function or declaration

D:\RomaniaExtremeStunt\gamemodes\RES.pwn(756) : error 010: invalid function or declaration

D:\RomaniaExtremeStunt\gamemodes\RES.pwn(758) : error 010: invalid function or declaration

D:\RomaniaExtremeStunt\gamemodes\RES.pwn(759) : error 010: invalid function or declaration

D:\RomaniaExtremeStunt\gamemodes\RES.pwn(760) : error 010: invalid function or declaration

D:\RomaniaExtremeStunt\gamemodes\RES.pwn(767) : warning 203: symbol is never used: "Mesaje"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

6 Errors.

[/pawn]

Varog Ajutatima Am Nevoie La Serverul Meu De Asa Ceva! :((

Posted

[pawn]#include <a_samp>

forward ServerBot();

public ServerBot()

{

  new Mesaje;

  Mesaje = random(3);

  switch(Mesaje)

  {

      case 0: { SendClientMessageToAll(0x009999ff, "Vrei Sa Mergi In Locuri Fun? Scrie /teles!"); }

      case 1: { SendClientMessageToAll(0x009999ff, "Scrie /rules Casa Vezi Creatori Serverului!"); }

      case 2: { SendClientMessageToAll(0x009999ff, "Scrie /admins Casa Vezi Admini Online!"); }

  }

}

public OnGameModeInit()

{

SetTimer("ServerBot", 300000, 1);

return 1;

}

[/pawn] Nu da nici un warn nici eroare nimic :).

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

[pawn]#include <a_samp>

forward ServerBot();

public ServerBot()

{

  new Mesaje;

  Mesaje = random(3);

  switch(Mesaje)

  {

      case 0: { SendClientMessageToAll(0x009999ff, "Vrei Sa Mergi In Locuri Fun? Scrie /teles!"); }

      case 1: { SendClientMessageToAll(0x009999ff, "Scrie /rules Casa Vezi Creatori Serverului!"); }

      case 2: { SendClientMessageToAll(0x009999ff, "Scrie /admins Casa Vezi Admini Online!"); }

  }

}

public OnGameModeInit()

{

SetTimer("ServerBot", 300000, 1);

return 1;

}

[/pawn] Nu da nici un warn nici eroare nimic :).

Multumesc Mult Ice Acuma Merge :D

Posted

[pawn]#include <a_samp>

forward ServerBot();

public ServerBot()

{

  new Mesaje;

  Mesaje = random(3);

  switch(Mesaje)

  {

      case 0: { SendClientMessageToAll(0x009999ff, "Vrei Sa Mergi In Locuri Fun? Scrie /teles!"); }

      case 1: { SendClientMessageToAll(0x009999ff, "Scrie /rules Casa Vezi Creatori Serverului!"); }

      case 2: { SendClientMessageToAll(0x009999ff, "Scrie /admins Casa Vezi Admini Online!"); }

  }

}

public OnGameModeInit()

{

SetTimer("ServerBot", 300000, 1);

return 1;

}

[/pawn] Nu da nici un warn nici eroare nimic :).

OnGameModeInit ?? :)) Aici este vorba despre un filterscript, nu GM :p

Fara reclama in semnatura!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.