Jump to content

Ruddy

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    Somewhere

Ruddy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well that is the code I have been using to do it, even tried working with the guy tho coded it and he couldnt do it. I think that is a cause for help. If so I will go elsewhere I would have just liked some help. From that code im sure someone can find where I have gone wrong with the blurry image. And point in the right direction would me nice at least.
  2. Hey all, I'm new to java script and for those of you that play minecraft, you should know that you can have a skin. Them skins are stored at minecraft.net and are public. I would like to get the skin of a user and using java script put it together in a 2D view and enlarge the size. I have come across something that does do this here: http://code.google.com/p/minecraft-skin-viewer/source/browse/trunk/js/mcSkinRenderer.js?r=2 This will put together a skin, but I have been at it for days trying to get the image bigger without getting it blurry. I can make it bigger but it always goes blurry, I know it can be done as I have seen sites do it but in 3D. I want to get the head of the skin and enlarge it to 64px - 64px. If anyone could write the code for this it would be amazing and if they have time write comments as I would love to learn this sort of thing. Example of a skin : http://www.minecraft.net/skin/Ruddy2007.png That is my skin. Thank you and good luck.
  3. Thank you creata.physics, I get what I was doing wrong now. fixed and the code is a lot less. Thanks again.
  4. // Get the users armour names $user_armour = array($user_head, $user_upper, $user_hands, $user_lower, $user_feet); $i=0; while($i < count($user_armour)) { $query1="SELECT * FROM armour WHERE id='$user_armour[$i]'"; $result1=mysql_query($query1); $array1=mysql_fetch_array($result1); $armour_name[$i]=$array1["name"]; $i++; } // set the users armours name $user_prot = array($user_head, $user_upper, $user_hands, $user_lower, $user_feet); // Get the users overall protection $i=0; while($i < count($user_prot)) { $query1="SELECT * FROM armour WHERE id='$user_prot[$i]'"; $result1=mysql_query($query1); $array1=mysql_fetch_array($result1); $armour_prot[$i]=$array1["protection"]; $i++; } // set the users protection $user_protection=$armour_prot[0] + $armour_prot[1] + $armour_prot[2] + $armour_prot[3] + $armour_prot[4]; Is there a way to get them as one so: $user_armour = array($user_head, $user_upper, $user_hands, $user_lower, $user_feet); $i=0; while($i < count($user_armour)) { $query1="SELECT * FROM armour WHERE id='$user_armour[$i]'"; $result1=mysql_query($query1); $array1=mysql_fetch_array($result1); $armour_name[$i]=$array1["name"]; $armour_prot[$i]=$array1["protection"]; $i++; } // set the users armours name $user_prot = array($user_head, $user_upper, $user_hands, $user_lower, $user_feet); Will that work and if so how would you then get the 2 different values out of say "$user_prot[0]". Cheers guys, Ruddy
  5. l0gic you are a god! Thank you so much, used your code line for line! Also to everyone else, thats what I was trying to do!! Thanks again.
  6. Put that in the page where you want to see the included pages. It will then print there names for you. My guess is that if you put that at the top of the page it would print them in order of top to bottom.
  7. Erm, its not what I want but If has now givin me an idea. So it has helped. Thanks for the reply, keep up the good work!
  8. I got it to work a while ago. Thanks so much for the help!
  9. I get ya, but how would I get it to run a SQL statement in a PHP file?
  10. $value1 = 0.10 //Want this one to run into that IF to find the "$result" $value2 = 0.30 //Then this one to go in if([$value1 and $value2] < 0.20) { $result= 0.75; } elseif([$value1 and $value2] < 0.40){ $result= 0.80; } echo $result; //for $value1 echo $result; //for $value2 I know that dont make that much sense, but I want to find the $result of $value1 and output it as its own variable and the same with $value2. Hope that makes sense xD
  11. Sorry for the bump then, and forget that code. Like I said before its kinda like finding a grade for a student. But I need to do it for mulitplie grades in 1 go. So if students mark is "90" it runs through a statement that finds if thats a A,B,C,D and so on. But I want to do it for multiplle "grades". So I want to run thr mark "90" and the mark "80" right after. So in 1 click of "find grade" button it will grab them 2 values run them through and output a grade for each. I hope that makes sense.
  12. Don't think you need to be rude, and I didnt ask anyone to do what you was going to go. Was asking if anyone else knew how to do what I want. I didnt tell you to do it I asked if you could would be great (it would), I just was trying to do it ASAP as once I start I dont like to stop. If you could help would be great. Cheers, Ruddy.
  13. Right, see if i got this right. You go to that file and set it so on a date/time of your choice it will run a file that you choose? If that is right I cannot find the file to set another file to run at a time I choose. If im wrong could you explain? Cheers, Ruddy.
  14. Hey guys, I dont know if you can do this in PHP due to it only running when the page loads but I would like to make it so at the end of everyday "24:00" some code will run that will reset all users "Mana" and "Health". My guess would be JQuery or somthing like that? If anyone knows would be great for a reply. Cheers guys, Ruddy
  15. Can anyone else help with this please?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.