Question with crash.
#1

Many people on my server got crash. I think that this gives crash.
Any ideas?
PHP код:
new engandlialwayson;
forward EngineAndLightsTurnedOn();
// OnGameModeInit
engandlialwayson SetTimer("EngineAndLightsTurnedOn"100001);
// OnGameModeExit
KillTimer(engandlialwayson);
public 
EngineAndLightsTurnedOn()
{
     for(new 
0MAX_VEHICLESi++)
     {
          
GetVehicleParamsEx(ienginelightsalarmdoorsbonnetbootobjective);
          
SetVehicleParamsEx(i11alarmdoorsbonnetbootobjective);
     }
     return 
1;

Reply
#2

Well...timers could cause bugs if they arent proper used. what does your function do if i may ask ?
Reply
#3

I think sometimes people are crashed because this script.
Reply
#4

Quote:
Originally Posted by AliveBG
Посмотреть сообщение
I think sometimes people are crashed because this script.
Could be but i want to know what this part of your script do so i could further help you by telling you to script it
in any other way then this. And so there wont be any crash
Reply
#5

Hmm, maybe going from lag. When I increased the timer to 8 seconds, for now people don't have crashes.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)