(This post was last modified: 25.06.2010, 16:41 by paulgerman.)
18.06.2010, 15:31
Ok thanks for the answer.
I have another small/big problem... I hope someone can help me.
I want to recruit a noble from game.php.
I used this:
$units = new units();
$units->recruit_units('unit_spear','2','barracks','4','5');
The function is this: recruit_units($name,$count,$building,$building_stage,$villageid)
The function doesn't work as it should. I mean it inserts in the database almost everything it should but the finish time is the current time meaning that the noble takes 0 seconds to complete but it doesn't even complete because it appears with - (-1,-2) seconds(p.s. I'm not noob... i have events.php [dslan_start] on and the normal snob rectuit is working perfectly.
P.S. the actual speed of the server is 1 so a normal noble recruit takes more than 1 second it takes 53 seconds.
What I want is that when I add the recruit command the finish time of it to be the normal one, like a normal noble recruit
I have another small/big problem... I hope someone can help me.
I want to recruit a noble from game.php.
I used this:
$units = new units();
$units->recruit_units('unit_spear','2','barracks','4','5');
The function is this: recruit_units($name,$count,$building,$building_stage,$villageid)
The function doesn't work as it should. I mean it inserts in the database almost everything it should but the finish time is the current time meaning that the noble takes 0 seconds to complete but it doesn't even complete because it appears with - (-1,-2) seconds(p.s. I'm not noob... i have events.php [dslan_start] on and the normal snob rectuit is working perfectly.
P.S. the actual speed of the server is 1 so a normal noble recruit takes more than 1 second it takes 53 seconds.
What I want is that when I add the recruit command the finish time of it to be the normal one, like a normal noble recruit