
lucky3809
-
Posts
1,115 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Posts posted by lucky3809
-
-
$db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)");
You added stats you need to add it to the values there is only 6 there should be 7.
1---`userid` int(11) NOT NULL default '0',
2---`strength` decimal(11,4) NOT NULL default '0.0000',
3---`agility` decimal(11,4) NOT NULL default '0.0000',
4---`vitality` decimal(11,4) NOT NULL default '0.0000',
5---`IQ` decimal(11,4) NOT NULL default '0.000000'
6---`guile` decimal(11,4) NOT NULL default '0.000000'
7---`spirit` decimal(11,4) NOT NULL default '0.000000'
should be...
$db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10,10)");
-
Add an IF statement and add it above the query which is INSERT-ing the time...
if($r['Nojail'] < 1440)
{
$db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'");
}
-
Yes that has a very good graphic card the one in the link. As for buying on ebay make sure the company and person is legit...
-
your energy bars are off and also your usernames arent showing and money, it could be that the query is not selecting those fields from your database.
as for your bars your width is not added to your bars...
-
yep item_add() will fix your problem no need for the quantifier. and also the automatic one that has been coded updates the inventory everytime a player clicks the inventory link,and the item numbers soar to the billions....
-
wrongly coded... or illegal copy of mccodes
-
use the cronless mod by Haunted Dawg it works perfect you can add 1 minute 5 minute 1 hour what not.
also we told you about this, but you fail to listen to anyone in your other thread...
http://makewebgames.io/showthread.php/32642-any-version-Removal-of-1-minute-crons
-
Make a table call it direct deposit add id,userid,percentage,direct_option <--this field add enum and off,on....
Then do the $percentage=calculations then add a few querys in your job page and a few IF statements....
it's really simple...
I actually am going to do this to items like roguevampires.net has... but at the moment im working on gangs...
-
Your code can be found in your config.php page
If you cant get them to work use this way of doing your crons...
http://makewebgames.io/showthread.php/32642-any-version-Removal-of-1-minute-crons
-
use an IF statement... Or change the query and SELECT only the ones you want. and not the whole table.
-
@ Draftrude...
Most of all these people in this thread knows about php, not hard to learn suggest you learn some... Going through the codes that exist and cleaning the codes to suit you such as moving lines over with spacebar and what not does not make you a coder, nor does it make you any knowledgeable in the department of coding. Try making a mod from scrap then someone may help you... Because I doubt anyone is going to help anytime soon given nothing on your site is really actually coded by you, only things I see different is your images, everything else is given freely on here, and you shut those very same people out that has put their hard work into providing you with the freebies by saying they aren't coders!! ... Sorry but it came to my attention that your a moron...
-
ok why does this look hard for you to do?
You already have female and male option why not copy that part and change it to crystals or money and Insert the query? im surprised at the fact you know how to make a drop-down lol.
-
Did you know its a bad idea releasing a game on a free host? Because not all of your players will be allowed on to play, that is why many has a connection error... It pays to pay for hosting even if it's the small package deal, don't do FREE hosting you will come into a lot of problems from your players. Also when it's time to do the switch it can be a pain in the ass switching the database over and everything, if you don't know what you are doing... you said its moving to prisonsurvival.com that domain is taken, are you even sure what you are doing?
-
fair enough i deleted it.
-
Sorry the end of the script should be...
I forgot the $id = part....
$id=(isset($_GET['ID']) && ctype_digit($_GET['ID'])) ? $_GET['ID'] : '';
$user=$db->query("SELECT username FROM users WHERE userid='$id'")or die(mysql_error());
$r=$db->fetch_row($user);
echo '
Each steal cost 10 energy, you have '.$ir['energy'].' energy.<br />
You may steal the following from '.$r['username'].'...<br /><br />
<table><tr><td >
<a href="steal.php?ID='.$id.'&action=money">Money</a> |
<a href="steal.php?ID='.$id.'&action=crystals ">Crystals
</a></td></table>';
$h->endpage();
I updated the main post
also for those using the script some of the mres has a space due to the forum you need to back space them.
also dont forget you cant just link the page to steal.php it has to be steal.php?ID='.$r['userid'].' as typed in second posting lol....
-
The page doesn't even load.
-
For the private messages, the query must be only calling ones to show within a time period... I got rid of them by going to http://makewebgames.io/usercp.php and individually deleting them until I had none... Might want to check the query on the main inbox page and change the limit to show all messages then just a few Im guessing it only shows messages within a 7 day period, and not the prior ones someone may have.
-
play some titanic stuff people love it... I lived in Oregon in the US and they have nothing but street performers downtown Portland, there use to be a guy on the corner every weekend playing Titanic songs and he raked in over $200 per hour... I guess you need to pick the right place and the right popularity of music to play... It does suck when you have a lot of performers in one area...
-
It's ok I like the concept of items in your market but there are also things in your market that needs fixing such as your search, it directs to forum search dont know if you noticed it and forum is spelt for:m on your game, by the search area....
As for the logo on top I hope you didnt pay someone to make it for you, they did a really bad job... As for I can see where they duplicated the picture and covered it over 13 times and they didnt do a good job with smudging in the black area and rendering the knight... also you should think about the most popular width on peoples screens and not just aim for what is suitable for your screen only...
its a little too wide players dont like to scroll over who uses 15 inch screens on their laptop or computer monitor...
-
it means a bracket is missing or there is double...
such as the error $r[space']
in which the ' is missing which will give you that error or
$r[['space'] will also give you that error
it should be $r['space']
NOTE: didnt look at the script so 'space' is made up in the example I gave its not an actual name given in the script...
This is the part you should examine on that line...
print "<tr><td><a href="http://factions.php?step=profile&ID=
problem 1...
{$r[" target=_blank">
<h3>{$r['faNAME]}</h3></a></td><td>";
$membs = sprintf("SELECT * FROM `users` WHERE faction = %u",
mysql_real_escape_string($r['faID']));
$mems = mysql_query($membs);
print mysql_num_rows($mems)."</td>
<td>{$r['faREPUTATION']}</td>
<td>
problem 2...
</td></tr>";
}
-
Here dont know if this is what your aiming for or what but in viewuser under the query that grabs all the user info place
$s=$db->query("SELECT userid, username FROM users WHERE userid={$r['sensei']}");
$stud=$db->fetch_row($s);
if($r['sensei'] != 0){$stu= "<a href='viewuser.php?u={$stud['userid']}'>".$stud['username']."</a>";}
else {$stu= "<font color=red>Single</font>";}
and in user profile under the name: stuff add
Students : $stu
-
To be honest I think you need to learn your IF statements... here is a site that may help you learn...
-
You should make a new table call it students
then add...
userid
student_one
student_two
student_three
student_count ....
Much easier then the way your doing it... then add the queries where they need to be.
-
And that is why all codes should be looked over and not just copied and paste into someone ftp... just saying lol.
If your just copying and pasting chances are one of these days your going to add the wrong code with malicious coding in it... So it pays to ALWAYS look the code over before adding...
Adding or Remove stats
in Requests & In Production
Posted · Edited by lucky3809
It should if you do not have it there... all your stats in your table should be set to 10.0000
These werent...
5---`IQ` decimal(11,4) NOT NULL default '0.000000'
6---`guile` decimal(11,4) NOT NULL default '0.000000'
7---`spirit` decimal(11,4) NOT NULL default '0.000000'
11,4
4 is the zeros after the decimal... 11 is for numbers before the dec..
what page is this from
SELECT count(*) FROM userstats us LEFT JOIN users u ON us.userid=u.userid WHERE us.strength > AND us.userid != 2 AND u.user_level != 0
the problem with that is userlevel... or after that...post that part.