Temos pavadinimas: Coding help (Paprasta tema)
Autorius: justanius
Tema pradėta: 22:56:06 2011 01 22
Pranešimai: 10 Paskutinis pranešimas: 00:28:38 2011 01 31. Autorius justanius
justanius | Paskelbta: 22:56:06 2011 01 22 |
Pranešimai: 37 Temos: 9 Valstybė: United States Lytis: Vyras |
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 | Paskelbta: 23:54:08 2011 01 22 |
Pranešimai: 330 Temos: 27 Valstybė: Canada Lytis: Vyras |
I don't know PHP but the math looks ok. (Maybe if it was C++, I could have helped ... )
|
Moiare | Paskelbta: 10:55:33 2011 01 23 |
Pranešimai: 135 Temos: 6 Valstybė: United States Lytis: Vyras |
My PHP is rusty too, but are you missing some single quotes in the $object[ ] ?
|
justanius | Paskelbta: 07:22:45 2011 01 24 |
Pranešimai: 37 Temos: 9 Valstybė: United States Lytis: Vyras |
Oh no, I'm not I just changed them to make them more easily readable.
|
Exemplary Strategy | Paskelbta: 00:14:16 2011 01 25 |
Pranešimai: 928 Temos: 47 Valstybė: United States Lytis: Vyras |
what is the point, all you do is, +number to -number, in each area, and add the numbers.. so
|
Exemplary Strategy | Paskelbta: 00:17:40 2011 01 25 |
Pranešimai: 928 Temos: 47 Valstybė: United States Lytis: Vyras |
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 | Paskelbta: 00:38:08 2011 01 25 |
Pranešimai: 928 Temos: 47 Valstybė: United States Lytis: Vyras |
<form method="get" action="action.php">
|
Exemplary Strategy | Paskelbta: 00:39:46 2011 01 25 |
Pranešimai: 928 Temos: 47 Valstybė: United States Lytis: Vyras |
im sure you can tell i dont know php from this, but if it helps, use it.
|
Exemplary Strategy | Paskelbta: 00:54:57 2011 01 25 |
Pranešimai: 928 Temos: 47 Valstybė: United States Lytis: Vyras |
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 | Paskelbta: 02:02:31 2011 01 27 |
Pranešimai: 1939 Temos: 44 Valstybė: United States Lytis: Vyras |
err, 1000 - (-1000) = 2000
|
justanius | Paskelbta: 00:28:38 2011 01 31 |
Pranešimai: 37 Temos: 9 Valstybė: United States Lytis: Vyras |
Yea, but that would just be making it too easy on myself. haha
|
Ankstesnis 1 Sekantis