schan
New member
- Messages
- 60
- Points
- 0
- Github
- xschan
- Emulator
Hi,
I need help with this. I want the npc to start a counter on server start up and attach to players who activated it.
The counter will continue even if the player logged out of the game.
OnTimer60000: //1 minute set minute, minute + 1; stopnpctimer; initnpctimer; end;OnPCLoginEvent: attachnpctimer strcharinfo(0); initnpctimer; end;OnInit: attachnpctimer strcharinfo(0); initnpctimer; end;
My script works fine but the counter stops when player logs out of the game and gives me this error on server start up:
I need help with this. I want the npc to start a counter on server start up and attach to players who activated it.
The counter will continue even if the player logged out of the game.
OnTimer60000: //1 minute set minute, minute + 1; stopnpctimer; initnpctimer; end;OnPCLoginEvent: attachnpctimer strcharinfo(0); initnpctimer; end;OnInit: attachnpctimer strcharinfo(0); initnpctimer; end;
My script works fine but the counter stops when player logs out of the game and gives me this error on server start up:
Code:
script_rid2sd: fatal error! player not attached!
Last edited by a moderator: