0 Members and 2 Guests are viewing this topic.
The only thing I am unhappy about right now is that the auto-turret can only shoot once a second due to threads being too instable.. is there any work-around?
const apponidletimer=30; maxplayers=6;// Or do I have to do thisprocedure activateserver();begin apponidletimer:=30; maxplayers:=6;end;
procedure ActivateServer();begin AppOnIdleTimer := 30;end;
First of all, these are not global constants, but global variables. You can set them anytime during runtime.Second, they're preset and defined by API, so you don't need to declare them at all. Just set them somewhere, like:Code: [Select]procedure ActivateServer();begin AppOnIdleTimer := 30;end;
vartest: boolean;procedure ActivateServer();begin ... test:=true;end;procedure AppOnIdle(Ticks: integer)begin if(Ticks mod(60)=0)then begin if(test) then begin AppOnIdleTimer:=30; test:=false; end; end;end;