Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem
d0min
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 2.02.2009

Ostrzeżenie: (0%)
-----


  1. <?php
  2. if ($ThePlanet['b_tech_id'] == $Techno) {
  3.                            $nedeed = GetBuildingPrice($CurrentUser, $WorkingPlanet, $Techno)
  4.  
  5.                                if ($WorkingPlanet[ide] == $CurrentPlanet[id]){
  6.                                    $CurrentPlanet['metal']       = $CurrentPlanet['metal'] + $nedeed['metal'];
  7.                                    $CurrentPlanet['crystal']     = $CurrentPlanet['crystal'] + $nedeed['crystal'];
  8.                                    $CurrentPlanet['deuterium']   = $CurrentPlanet['deuterium'] + $nedeed['deuterium'];
  9.                                    }
  10.                                else{
  11.                                    $WorkingPlanet['metal']       = $WorkingPlanet['metal'] + $nedeed['metal'];
  12.                                    $WorkingPlanet['crystal']     = $WorkingPlanet['crystal'] + $nedeed['crystal'];
  13.                                    $WorkingPlanet['deuterium']   = $WorkingPlanet['deuterium'] + $nedeed['deuterium'];
  14.                                    }
  15.  
  16.                            $WorkingPlanet['b_tech_id']   = 0;
  17.                            $WorkingPlanet["b_tech"]      = 0;
  18.                            $CurrentUser['b_tech_planet'] = $WorkingPlanet["id"];
  19.                            $UpdateData                   = 1;
  20.                            $InResearch                   = false;
  21.                                    
  22.                            }
  23. ?>


Czy ktos moglby mi powiedziec co w tym kodzie jest zle? (wiem ze sa dwa bledy)

Ten post edytował d0min 2.02.2009, 17:30:36
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Eagle
post
Post #2





Grupa: Zarejestrowani
Postów: 170
Pomógł: 14
Dołączył: 16.03.2007

Ostrzeżenie: (0%)
-----


Super...
Dawaj tagi [ php] i sensowne tytuły...

  1. <?php
  2. $nedeed = GetBuildingPrice($CurrentUser, $WorkingPlanet, $Techno); // <- Brak średnika
  3.  
  4.                                if ($WorkingPlanet[ide] == $CurrentPlanet[id]) // Brak ' ' przed indeksami w tablicach (chyba że są to stałe) {
  5. ?>


Ten post edytował Eagle 2.02.2009, 17:28:56
Go to the top of the page
+Quote Post
Spawnm
post
Post #3





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




daj to w bbcode powiedz jakie błędy ci wyskakują (komunikaty).

$nedeed = GetBuildingPrice($CurrentUser, $WorkingPlanet, $Techno)
zabrakło na końcu ';' .
Go to the top of the page
+Quote Post
d0min
post
Post #4





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 2.02.2009

Ostrzeżenie: (0%)
-----


Cytat(Eagle @ 2.02.2009, 17:28:37 ) *
Super...
Dawaj tagi [ php] i sensowne tytuły...

  1. <?php
  2. $nedeed = GetBuildingPrice($CurrentUser, $WorkingPlanet, $Techno); // <- Brak średnika
  3.  
  4.                                if ($WorkingPlanet[ide] == $CurrentPlanet[id]) // Brak ' ' przed indeksami w tablicach (chyba że są to stałe) {
  5. ?>


Dzieki Eagle, pomogło i na przyszłośc będe dawał php i dobra nazwe tematu :}


Pozdrawiam,
Go to the top of the page
+Quote Post
ayeo
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 1 202
Pomógł: 117
Dołączył: 13.04.2007
Skąd: 127.0.0.1

Ostrzeżenie: (0%)
-----


Witaj na forum! Byłbym Ci bardzo wdzięczny jakbyś jednak poprawił i ten już istniejący tytuł. winksmiley.jpg Pozdrawiam!


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 08:15