Command Freeze [+reps] [debug]
#9

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Without the line that I provided even if you fixed the other problems in your code the command won't work without my line.. Anyway I gave you already one of the solutions, why would you do the saving immediately, for example, one of the players got frozen and he got his full freezing time saved, let's assume that he finished the freezing time and if your command worked, after a crash or restart he will login again and will find himself frozen again with the full-time, in order to fix this perform the saving when disconnecting and when restarting.
Also another bad thing about this, if you don't do the saving when disconnecting you have to do the saving whenever the player does any activity and trust me that's a bad thing for a scripter and for efficiency.

So I think you need to do my first solution.
Other than that I think you are using sscanf wrongly, use "s[]" for strings like reason I think can get your code to work, but unfortunately I am on phone sorry!.

I have I helped any feedback would be appreciated!
I'd thank you for trying to help, and + rep , but the problem was with "if(!IsPlayerConnected(id))" , thank you again
Reply


Messages In This Thread
Command Freeze [+reps] [debug] - by SPA - 30.07.2014, 13:14
Re: Command Freeze [+reps] [debug] - by SPA - 30.07.2014, 13:48
Re: Command Freeze [+reps] [debug] - by Stanford - 30.07.2014, 13:55
Re: Command Freeze [+reps] [debug] - by Stanford - 30.07.2014, 13:59
Re: Command Freeze [+reps] [debug] - by SPA - 30.07.2014, 17:53
Re: Command Freeze [+reps] [debug] - by SPA - 30.07.2014, 17:56
Re: Command Freeze [+reps] [debug] - by Iloveimpulse - 30.07.2014, 19:38
AW: Command Freeze [+reps] [debug] - by Stanford - 30.07.2014, 19:53
Re: AW: Command Freeze [+reps] [debug] - by SPA - 31.07.2014, 05:06

Forum Jump:


Users browsing this thread: 1 Guest(s)