Bericht Titel: Coding help ()
Poster: justanius
Bericht gestart:
Berichten: 10 Laatste bericht: door justanius
justanius | Gepost: |
Berichten: 37 Berichten: 9 Locatie: United States Geslacht: Man |
I'm having a major brain fart right now. I haven't done much coding in the last year (and I'm also not much of a mathematician). I'm trying to write a script that will calculate the distance between an object and a destination
|
Marvel Magnum | Gepost: |
Berichten: 330 Berichten: 27 Locatie: Canada Geslacht: Man |
I don't know PHP but the math looks ok. (Maybe if it was C++, I could have helped ... )
|
Moiare | Gepost: |
Berichten: 135 Berichten: 6 Locatie: United States Geslacht: Man |
My PHP is rusty too, but are you missing some single quotes in the $object[ ] ?
|
justanius | Gepost: |
Berichten: 37 Berichten: 9 Locatie: United States Geslacht: Man |
Oh no, I'm not I just changed them to make them more easily readable.
|
Exemplary Strategy | Gepost: |
Berichten: 928 Berichten: 47 Locatie: United States Geslacht: Man |
what is the point, all you do is, +number to -number, in each area, and add the numbers.. so
|
Exemplary Strategy | Gepost: |
Berichten: 928 Berichten: 47 Locatie: United States Geslacht: Man |
im trying to do the if for the calculation, but i know NO php, so dont be mad if you have to help me, btw, will people hit me up on msn frotobagginses@hotmail.com, if you think you can help. i'll show you what i have so far.
|
Exemplary Strategy | Gepost: |
Berichten: 928 Berichten: 47 Locatie: United States Geslacht: Man |
<form method="get" action="action.php">
|
Exemplary Strategy | Gepost: |
Berichten: 928 Berichten: 47 Locatie: United States Geslacht: Man |
im sure you can tell i dont know php from this, but if it helps, use it.
|
Exemplary Strategy | Gepost: |
Berichten: 928 Berichten: 47 Locatie: United States Geslacht: Man |
the if statement i need help with, is a negative value checker, the problem is, i dont know how to do the math, i can do it without a calculator, making one for me is pointless, but, if someone wants it, that's a Great reason to make it.
|
H911Reiver | Gepost: |
Berichten: 1939 Berichten: 44 Locatie: United States Geslacht: Man |
err, 1000 - (-1000) = 2000
|
justanius | Gepost: |
Berichten: 37 Berichten: 9 Locatie: United States Geslacht: Man |
Yea, but that would just be making it too easy on myself. haha
|
Vorige 1 Volgende