View Full Version : 2 Questions in one!
Tim0suprem0
07-26-2007, 04:29 AM
I have two questions! First, how do I use the SRL Player Manager? I found the script UsersManager is that it? And secondly, what do procedure NextPlayer(Active: Boolean); forward;
function FindNormalRandoms: Boolean; forward; those mean? I don't understand what the forward does, or how those functions/procedures are implemented in the rest of the include/script. Thanks for your patience and hopefully responses! I have to go to bed now, but I'll check here tomorrow.
I can answer your first question, it is yes, but not it's not all you have to do. You have to convert your scripts, which I can do for you.
Ashur2Good
07-26-2007, 07:09 AM
Uhh, i don't get what you want to do with it, but here http://www.villavu.com/forum/showthread.php?t=2071?t=2506 I think thats why you need :S If not, ask :)
-Ashur
LordGregGreg
07-26-2007, 08:27 AM
read the srl manual
it will explain all this very well
procedure NextPlayer(Active: Boolean); forward;
aka NextPlayer(false);
tells the manager that this player is no longer active (wont log in again) and to log in the next player (after it logs out this one)
if you set it to true, then it will keep this player in the loop that it swtiches through
function FindNormalRandoms: Boolean; forward;
that simple finds all of the normal, non skill related randoms you may come acros. read some tuts about implenting randoms for more info on how to make it better
Santa_Clause
07-26-2007, 09:11 AM
Forward works like this:
If you have 2 procedures, procedure A and procedure B. Procedure A uses procedure B and procedure B uses procedure A, if you don't have a forward, then you'll get an unknown identifier error because the script doesn't recognise one of the procedures.
Tim0suprem0
07-26-2007, 04:44 PM
Thanks Santa :) I thought it might be something like that. And Here, or anyone, how do I convert my script to implement the UsersManager?
LordGregGreg
07-26-2007, 05:29 PM
Thanks Santa :) I thought it might be something like that. And Here, or anyone, how do I convert my script to implement the UsersManager?
that project is still secrent untill the oprtune moment arrises.
In the mean time, basically all you have to do is remove the player array, and replace it with "loadus"
whithc will load whatever had been stroed earlier with "saveus"
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.