Explode

Gestart doorJeffreyy4 reacties55 weergaven

5 berichten · pagina 1 van 1

Jeffreyy

Lid · Topicstarter

Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan iemand mij uitleggen, hoe ik van dit

AddPlayerClass(0,647.9225,-1728.8702,13.9825,164.9872,0,0,0,0,0,0);

Dit:

_x = 647.9225
_y = -1728.8702
_z = 13.9825
_rot = 164.9872
_range = 30
_limit = 100
_fine = 2000
_usemph = 0
_activelabel = false
_labeltxt =

kan maken?

(Zwart is standaard waarde)
0
Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Welke script taal?
0
Jeffreyy

Lid · Topicstarter

Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
PHP, gewoon met explode ofzo, mij lukt het niet namelijk emo
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Eerst
AddPlayerClass(
en );

replacen naar niks
dan explode op ,
biggrin
0
Jeffreyy

Lid · Topicstarter

Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
t is me al gelukt, bedankt.

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700]])) {[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]apc[/COLOR][COLOR= #007700]]) || ![/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]snelheid[/COLOR][COLOR= #007700]])) {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Ongeldig[/COLOR][COLOR= #007700];
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$vars[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000],[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]apc[/COLOR][COLOR= #007700]]);[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]
        _x = [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$vars[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]1[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]<br />
        _y = [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$vars[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]2[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]<br />
        _z = [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$vars[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]3[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]<br />
        _rot = [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$vars[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]4[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]<br />
        _range = 30<br />
        _limit = [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]snelheid[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]<br />
        _fine = 2000<br />
        _usemph = 0<br />
        _activelabel = false<br />
        _labeltxt = 
        [/COLOR][COLOR= #007700];
    }
}[/COLOR]
?>
<form action="" method="post">
    <input type="text" name="apc"><br />
    <select name="snelheid">
        <option value="30">30</option>
        <option value="50">50</option>
        <option value="70">70</option>
        <option value="80">80</option>
        <option value="100">100</option>
        <option value="120">120</option>
        <option value="150">150</option>
        <option value="200">200</option>
    </select><br />
    <input type="submit" name="x" value="Convert">
</form>
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