Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 20:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Brauche dringen Hilfe *Verzweifel*

Discussion on Brauche dringen Hilfe *Verzweifel* within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1

 
Cookie1337™'s Avatar
 
elite*gold: 140
Join Date: Apr 2013
Posts: 72
Received Thanks: 20
Brauche dringen Hilfe *Verzweifel*

würde gerne dieses stück aus einem action script in php umschreiben,
bekomme es aber nicht ordentlich hin sprich es tauchen fehler auf

hier das original:
PHP Code:
 GoldKurve = new Array();
                
TrueAttPreis = new Array();
                
GoldKurve[1] = 25;
                
GoldKurve[2] = 50;
                
GoldKurve[3] = 75;
                
i;
                while (
<= 15000)
                {
                    
                    
GoldKurve[i] = int(GoldKurve[(1)]) + int(GoldKurve[int(2)] / 3) + int(GoldKurve[int(3)] / 4);
                    
GoldKurve[i] = int(GoldKurve[i] / 5);
                    
GoldKurve[i] = GoldKurve[i] * 5;
                    
= (1);
                }
                
i;
                while (
<= 15000)
                {
                    
                    
TrueAttPreis[i] = GoldKurve[int(5)];
                    
= (1);
                }
                
i;
                while (
<= 14996)
                {
                    
                    
TrueAttPreis[i] = int(TrueAttPreis[i]) + int(TrueAttPreis[(1)]) + int(TrueAttPreis[2]) + int(TrueAttPreis[3]) + int(TrueAttPreis[4]);
                    
TrueAttPreis[i] = int(TrueAttPreis[i] / 5);
                    
TrueAttPreis[i] = int(TrueAttPreis[i] / 5);
                    
TrueAttPreis[i] = int(TrueAttPreis[i] * 5);
                    
= (1);
                }
                
i
und hier meine version in php:
PHP Code:
$GoldKurve = Array();
$TrueAttPreis = Array();
$GoldKurve[1] = '25';
$GoldKurve[2] = 50;
$GoldKurve[3] = 75;
$i '1';
    if(
$i <= 15000)
    {
    
$GoldKurve[$i] = ($GoldKurve[$i 1]) + ($GoldKurve[$i 2] / 3) + ($GoldKurve[$i 3] / 4);
    
    
$GoldKurve[$i] = ($GoldKurve[$i] / 5);
    
$GoldKurve[$i] = $GoldKurve[$i] * 5;
    
$i = ($i 1);
    }
    
$i;
    
    if(
$i <= 15000)
    {
    
$TrueAttPreis[$i] = $GoldKurve[(1$i 5)];
    
$i = ($i 1);
    }
    
$i;
    
    if(
$i <= 14996)
    {
    
$TrueAttPreis[$i] = ($TrueAttPreis[$i]) + ($TrueAttPreis[($i +1)]) + ($TrueAttPreis[($i 2)]) + ($TrueAttPreis[($i 3)]) + ($TrueAttPreis[$i 4]);
    
$TrueAttPreis[$i] = ($TrueAttPreis[$i] / 5);
    
$TrueAttPreis[$i] = ($TrueAttPreis[$i] / 5);
    
$TrueAttPreis[$i] = ($TrueAttPreis[$i] * 5);
    
$i = ($i 1);
    }
    
$i;

echo(
''.$TrueAttPreis[$i].'');

?> 
ich hoffe jemand kann mir weiter helfen
geez Cookie
Cookie1337™ is offline  
Old 05/04/2013, 19:50   #2
 
elite*gold: 0
Join Date: Apr 2010
Posts: 1,352
Received Thanks: 788
PHP Code:
<?php
$goldKurve 
= array();  
$trueAttPreis = array();  
$goldKurve[0] = 0;
$goldKurve[1] = 25;  
$goldKurve[2] = 50;  
$goldKurve[3] = 75;  
$i 1;  
    while(
$i <= 15000)  
    {  
    
$goldKurve[$i] = round($goldKurve[$i 1]) + ($goldKurve[round($i 2)] / 3) + ($goldKurve[round($i 3)] / 4);  
      
    
$goldKurve[$i] = $goldKurve[$i] / 5;  
    
$goldKurve[$i] = $goldKurve[$i] * 5;  
    
$i++;  
    }  
    
$i 1;  
      
    while(
$i <= 15000)  
    {  
    
$trueAttPreis[$i] = $goldKurve[round($i 5)];  
    
$i++;  
    }  
    
$i 1;  
      
    while(
$i <= 14996)  
    {  
    
$trueAttPreis[$i] = round($trueAttPreis[$i]) + ($trueAttPreis[($i +1)]) + ($trueAttPreis[($i 2)]) + ($trueAttPreis[($i 3)]) + ($trueAttPreis[($i 4)]);  
    
$trueAttPreis[$i] = round($trueAttPreis[$i] / 5);  
    
$trueAttPreis[$i] = round($trueAttPreis[$i] / 5);  
    
$trueAttPreis[$i] = round($trueAttPreis[$i] * 5);  
    
$i++;  
    }  
    
$i 1;  
    
?>
Ist es das, was du willst?
yym3 is offline  
Thanks
1 User
Old 05/04/2013, 20:05   #3
 
elite*gold: 0
Join Date: Apr 2005
Posts: 323
Received Thanks: 114
Es hat zwar nichts mit deinem konkreten Problem zu tun, aber ich ahne was das Endergebnis sein soll. Schau dir das hier mal an: Eventuell ersparst du dir damit eine Menge Arbeit.
MrPuschel is offline  
Thanks
1 User
Old 05/04/2013, 20:07   #4

 
boxxiebabee's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,222
Received Thanks: 500
Code:
$GoldKurve[0] = 0; 
$GoldKurve[1] = 25; 
$GoldKurve[2] = 50; 
$GoldKurve[3] = 75; 

    for($i = 1; $i <= 15000; $i++) { 
		$GoldKurve[$i] = ($GoldKurve[$i - 1]) + ($GoldKurve[round($i / 2)] / 3)  + ($GoldKurve[round($i / 3)] / 4); 
		$GoldKurve[$i] = $GoldKurve[$i] / 5; 
		$GoldKurve[$i] = $GoldKurve[$i] * 5; 
    } 
     
    for($i = 1; $i <= 15000; $i++) { 
		$TrueAttPreis[$i] = $GoldKurve[round(1+ $i / 5)]; 
    }
	
	for($i = 1; $i <= 14996; $i++) { 
		$TrueAttPreis[$i] = ($TrueAttPreis[$i]) + ($TrueAttPreis[($i +1)]) + ($TrueAttPreis[($i + 2)]) + ($TrueAttPreis[($i + 3)]) + ($TrueAttPreis[$i + 4]); 
		$TrueAttPreis[$i] = ($TrueAttPreis[$i] / 5); 
		$TrueAttPreis[$i] = ($TrueAttPreis[$i] / 5); 
		$TrueAttPreis[$i] = ($TrueAttPreis[$i] * 5); 
    }

echo $TrueAttPreis[count($TrueAttPreis)];
boxxiebabee is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Brauche Dringen Hilfe!
12/26/2011 - Minecraft - 3 Replies
Hallo leute, Ich habe mir gerade ein Minecraft Server Root gemietet aus deindex.html und der Server ist auch online aber ich komme nicht rein :( brauche ich ein Premium Benutzer denn wenn ja dann war alles umsonst ;( bitte wenn du ein PremiumBenutzer bist bei Minecraft versuch reinzujoinen hier die daten 95.156.240.90:25565 oder wenn das nicht geht dann versucht 95.156.240.90 bitte schnell antworten ;) lg
!! Brauche Dringen Hilfe !!
04/30/2011 - AutoIt - 2 Replies
Moin ich habe ein großes problem ich bin gerade dabei einen mapporter zu basteln das problem is folgendes: Wie mach ich das ich über einen combobox oda dropdown menü das bild wechsel wenn ich jetzt z.b Test.jpeg ausgewählt hab in der Gui und ich wechsele auf Test1.Jpeg das sich dann die map in der Gui verändert schickt mir bitte eine Source gebe auch thx mfg GamePlayZones
Brauche dringen Hilfe :(
08/16/2010 - WarRock - 16 Replies
Hallo Forum Also ich habe das Problem das ich immer sehr stark lagge und wie jeder das vielleicht kennt wird man ständig gekillt und ich bin grad ziemlich am verzweifeln denn ich finde keinen Weg damit dieses Blöde Laggen endlich mal aufhört. Ich hoffe ihr könnt mir helfe oder irgendwas machen. Könnt mir auch Links schicken damit z.B. alles gereinigt wird oder so ich weiß es selber nicht. Ahja ich spiele auf ein Laptop und habe Windows Xp, vielleicht hilft das weiter. Keine Ahnung Mfg...
Brauche Dringen Hilfe bei v15
06/26/2010 - Flyff Private Server - 10 Replies
Mahlzeit, Habe zwei Fehler, bei den ich ganz dringen HILFE brauche :( 1) ich brauche dringend hilfe bei meinen Flyff v15 p server. ich kann alles starten außer den Worldserver. Ich habe keine ahnung warum das so ist. Weil bis vor 10 min ging noch alles perfekt. Ich kann die fehlermeldung auch nicht beschreiben, oder hierein schreiben, weil das irgendeine andere sprache ist. 2) Ich habe ein Regi script gedownloadet. Hab das anscheind auch richtig eingestellt, weil wenn ich mir damit...
brauche dringen hilfe
04/26/2009 - Aion - 1 Replies
sorry fürs 2te theard aber ich hab jetzt ein ziemlich großes problem kurz nachdem ich die flügel bekommen hab bin ich gestorben und leider hab ich vergessen die neue stadt als rückkehrpunkt einzutragen was bedeutet ich bin gaaanz am anfang hab mich jetzt bis zum gate in diese Timolia Mine herangekämpft und weiß nimmer weiter da sind so 3 generatoren und n haufen monster und ich weiß nimmer wie ich zu dieser "flugstadt" zurückkomme EDIT: Gelöst xD' einfach zur Akarios Village gehen und...



All times are GMT +1. The time now is 20:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.