Hulp met code.

Gestart doorJurgen2 reacties48 weergaven

3 berichten · pagina 1 van 1

Jurgen

Lid · Topicstarter

Berichten
15.303
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoi.
Ik ben dus bezig met de Crimebuilder source die nu staat op www.spellenhal.com.
Er zitten een aantal fouten in. Als je je paketten wilt beheren, geeft hij deze errors terug:

Warning: fopen(game/include/game_info/6.txt) [function.fopen]: failed to open stream: No such file or directory in /home/kerjurrie/domains/spellenhal.com/public_html/nederlands/beheer_paketten.php on line 766

Warning: filesize() [function.filesize]: stat failed for game/include/game_info/6.txt in /home/kerjurrie/domains/spellenhal.com/public_html/nederlands/beheer_paketten.php on line 767

Warning: fread(): supplied argument is not a valid stream resource in /home/kerjurrie/domains/spellenhal.com/public_html/nederlands/beheer_paketten.php on line 767

Warning: fclose(): supplied argument is not a valid stream resource in /home/kerjurrie/domains/spellenhal.com/public_html/nederlands/beheer_paketten.php on line 772

De paketten kopen lukt wel, alleen blijft die error erboven staan dat slordig staat.
Dit is het stuk code waarin de errors zitten:

[COLOR= #0000BB]<?php[/COLOR]
 
        [COLOR= #007700]}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
 
        [COLOR= #0000BB]$paketten[/COLOR]                     [COLOR= #007700]=[/COLOR]      [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
 
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]kogelfabriek[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]racen[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]getallenspel[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]dobellen[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]krassen[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]roulette[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]heist[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]orgcrime[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]werken[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]bescherming[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]mister_x[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]forum[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]msn[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$game_gegevens[/COLOR][COLOR= #007700][[/COLOR]mission[COLOR= #007700]] ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])[/COLOR]
                [COLOR= #0000BB]$paketten[/COLOR]              [COLOR= #007700]+=[/COLOR]     [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
 
        [COLOR= #0000BB]$bestand[/COLOR]                        [COLOR= #007700]=[/COLOR]       [COLOR= #DD0000]"game/include/game_info/"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$data[/COLOR][COLOR= #007700][[/COLOR]game_id[COLOR= #007700]].[/COLOR][COLOR= #DD0000]".txt"[/COLOR][COLOR= #007700];[/COLOR]
 
        [COLOR= #0000BB]$handle[/COLOR]   [COLOR= #007700]=[/COLOR]        [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bestand[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"r"[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$gegevens[/COLOR]                     [COLOR= #007700]=[/COLOR]      [URL="http://www.php.net/fread"]fread[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$handle[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/filesize"]filesize[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bestand[/COLOR][COLOR= #007700]));[/COLOR]
        [COLOR= #0000BB]$stukken[/COLOR]                        [COLOR= #007700]=[/COLOR]       [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$gegevens[/COLOR][COLOR= #007700]);[/COLOR]
 
        [COLOR= #0000BB]$game_titel[/COLOR]          [COLOR= #007700]=[/COLOR]    [COLOR= #0000BB]$stukken[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR]
 
        [URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$handle[/COLOR][COLOR= #007700]);[/COLOR]
?>


Ik hoop dat iemand mij kan helpen. smile pompom smile
(Ohja, ik heb nog een fout op www.spellenhal.com/nederlands/beheer.php als iemand daar een oplossing voor heeft is het welkom. Stuur dan maar een PM voor de code van die pagina.)
0
Jurgen

Lid · Topicstarter

Berichten
15.303
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Oh, je ziet het alleen als je bent ingelogd. Maar de fout is dat alle inhoud helemaal onderaan staat en de hele layout is verprutst terwijl, als ik op mijn admin account inlog, ik het wel normaal zie.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren