I have yet the vps server but i dont know what i must change on emulator anyone can help me :/ ?
<?php
$currentFirm = Auth::getUser('factionid');
$array_faction = array(1 => 'Mars Mining Operations (MMO)', 2 => 'Earth Industries Corporation (EIC)', 3 => 'Venus Resources Unlimited (VRU)');
?>
<link type="text/css" href="public/css/changeFirm.css" rel="stylesheet" media="all" />
<script>
function openMiniMap()
{
console.log("works");
window.open('<?php echo URL; ?>internalMap', '_blank', 'width=1280,height=900');
}
</script>
<div id="left_start">
</div>
<div id="mainContentFirm">
<div class="title"></div>
<div class="currentFirm">
<img src="<?php echo URL;?>public/images/faction<?php echo $currentFirm ?>.jpg">
<span class="name"><?php echo $array_faction[$currentFirm]; unset($array_faction[$currentFirm]); ?></span>
</div>
<div class="infosFirm">
<?php
$members_count = 0;
$kill_count = 0;
foreach ($this->FirmInfos as $key => $value) {
$members_count += 1;
$kill_count += $this->FirmInfos[$key]['user_kill'];
}
?>
<span>Members: <?php echo $members_count; ?></span><br>
<span>Ships destroyed: <?php echo $kill_count; ?></span>
</div>
<div class="changeFirm">
<?php
$first = 0;
foreach ($array_faction as $key => $value)
{
if ($first == 0)
{
echo '<form action="'.URL.'changeFirm/Update" method="post">';
echo '<input type="hidden" name="factionid" value="'.$key.'">';
echo '<input type="submit" class="faction'.$key.'" value="">';
echo '</form>';
echo '<span>Switch FIRM</span>';
$first = 1;
}
else
{
echo '<form action="'.URL.'changeFirm/Update" method="post">';
echo '<input type="hidden" name="factionid" value="'.$key.'">';
echo '<input type="submit" class="faction'.$key.'" value="" style="float: right;">';
echo '</form>';
}
}
?>
</div>
</div>
[Only registered and activated users can see links. Click Here To Register...]Quote:
At the end of the shift signature remains stuck at a blank page localhost/changeFirm/Update.
how do I get it back to localhost/changeFirm. ?
PHP Code:<?php
$currentFirm = Auth::getUser('factionid');
$array_faction = array(1 => 'Mars Mining Operations (MMO)', 2 => 'Earth Industries Corporation (EIC)', 3 => 'Venus Resources Unlimited (VRU)');
?>
<link type="text/css" href="public/css/changeFirm.css" rel="stylesheet" media="all" />
<script>
function openMiniMap()
{
console.log("works");
window.open('<?php echo URL; ?>internalMap', '_blank', 'width=1280,height=900');
}
</script>
<div id="left_start">
</div>
<div id="mainContentFirm">
<div class="title"></div>
<div class="currentFirm">
<img src="<?php echo URL;?>public/images/faction<?php echo $currentFirm ?>.jpg">
<span class="name"><?php echo $array_faction[$currentFirm]; unset($array_faction[$currentFirm]); ?></span>
</div>
<div class="infosFirm">
<?php
$members_count = 0;
$kill_count = 0;
foreach ($this->FirmInfos as $key => $value) {
$members_count += 1;
$kill_count += $this->FirmInfos[$key]['user_kill'];
}
?>
<span>Members: <?php echo $members_count; ?></span><br>
<span>Ships destroyed: <?php echo $kill_count; ?></span>
</div>
<div class="changeFirm">
<?php
$first = 0;
foreach ($array_faction as $key => $value)
{
if ($first == 0)
{
echo '<form action="'.URL.'changeFirm/Update" method="post">';
echo '<input type="hidden" name="factionid" value="'.$key.'">';
echo '<input type="submit" class="faction'.$key.'" value="">';
echo '</form>';
echo '<span>Switch FIRM</span>';
$first = 1;
}
else
{
echo '<form action="'.URL.'changeFirm/Update" method="post">';
echo '<input type="hidden" name="factionid" value="'.$key.'">';
echo '<input type="submit" class="faction'.$key.'" value="" style="float: right;">';
echo '</form>';
}
}
?>
</div>
</div>
I do not understand why you answered here too .. (16:02)Quote:
[Only registered and activated users can see links. Click Here To Register...]
Or js history.back(-1)
Dude cmon, if you don't know the basics of html why do you even work on it, it's like writing "how do I write?" < (not troll)
better question: why you asked here too?Quote:
I do not understand why you answered here too .. (16:02)
saw that you had read that I had solved. ;)
H 15:17 pm [Only registered and activated users can see links. Click Here To Register...] with your answer at H 15:51 pm
[Only registered and activated users can see links. Click Here To Register...]
I said also here to try and get an answer from most people.Quote:
better question: why you asked here too?
To make your answer absolete: Because you are a leecher, stupid as fuck and need the full focus of ppl with really know what making a server is about..
ever thought about to team up with the other guy like you?
loyoblah.. i'm sure you know who i mean.. you are same kind of guy.. but maybe this is the problem.. :rolleyes:
@team: yes that was harsh. give me a point for it. it was worth it
Lovefull postQuote:
better question: why you asked here too?
To make your answer absolete: Because you are a leecher, stupid as fuck and need the full focus of ppl with really know what making a server is about..
ever thought about to team up with the other guy like you?
loyoblah.. i'm sure you know who i mean.. you are same kind of guy.. but maybe this is the problem.. :rolleyes:
@team: yes that was harsh. give me a point for it. it was worth it
Because loading accounts one by one is really slow, and I used sockets because are faster than MySQL, maybe with 1 - 2 accounts doesn't cares but with more than 500 it's really slowQuote:
Just asking. Why do you load everything at the start of the emulator and work with that, instead of using this query, if a user logs in:
SELECT ´name´ FROM ´accounts´ WHERE ´userid´= packetParser.getInt() AND ´sessionid` = packetParser.getString()
If you understand what I mean. If you do it with everything, which has to be initialized when the user logs in or has to be updated directly, no ammo can get lost, no error while logging in and so on.
Wow you are proQuote:
I do not understand why you answered here too .. (16:02)
saw that you had read that I had solved. ;)
H 15:17 pm [Only registered and activated users can see links. Click Here To Register...] with your answer at H 15:51 pm
[Only registered and activated users can see links. Click Here To Register...]
Hey baby how you been :p, but then it will use many memory and TOO SLOW start up.Quote:
Because loading accounts one by one is really slow, and I used sockets because are faster than MySQL, maybe with 1 - 2 accounts doesn't cares but with more than 500 it's really slow
But once it's started the logon on the map is instantly, I prefere to wait 1 minute to start the emu than 3 seconds each time an user logs, you'll start the server one time, not all the timeQuote:
Wow you are pro
I'm not your babysitter so don't double post next time
Hey baby how you been :p, but then it will use many memory and TOO SLOW start up.
Think that you are loading 60k users on initializing - it will become a nightmare.
In 3 seconds, you can load user information + ammo + equipments from 5 (or 6, not sure) tables, parse them and add user to game. I didn't try to make it fast but I think its faster than enough :)