The online racing simulator
Searching in All forums
(13 results)
kantzorf
S2 licensed
Quote from Mustangman759 :sry to car 93 on lap 41 rewatched was my fault

No problem
kantzorf
S2 licensed
Thanks boothy, it works now .
kantzorf
S2 licensed
Mission imposible :biggrinfl.
I can't login, check this: http://newdimensionracing.com/ ... php/user-profile?user=157
kantzorf
S2 licensed
Quote :Your registration process is not yet complete! Please check again your email for further instructions that have just been resent. If you don't find the email, check your spam-box. Make sure that your email account options are not set to immediately delete spam. If that was the case, just try logging in again to receive a new instructions email.

You can't activate them manually?
Maybe it's a problem with the mail server...
kantzorf
S2 licensed
Quote from elliot1992 :I've attempted to register but it won't send me confirmation e-mail.

I've checked junk as well but nothing. I will hopefully be there as long as i get a skin done by 5.00...

Same here, I'm still waiting it... I hope I'll can join the practice session.
I checked the spam folder too, it's empty .
kantzorf
S2 licensed
I tried to register at http://newdimensionracing.com, but I don't receive the confirmation mail.
kantzorf
S2 licensed
Here are our skins (wYk Racing Team)
kantzorf
S2 licensed
Everything looks fine now .
kantzorf
S2 licensed
Thank you very much for your support, it works now .
That's the result: http://sig.live-for-speed.ro/Dygear.png

But now I (or we? ) have another problem, the script doesn't work for users like "Gabriel B.".
I checked that on your link: http://area51.wlvacc.org/lfs/get_pst.php?racer=Gabriel B.
kantzorf
S2 licensed
Here is the code:

<?php 
php
    
include('lfsworldsdk.php');
    function 
trackToName($trackCode) {
        switch(
$trackCode[0]) {
            case 
0$rtn 'Blackwood ';
                switch(
$trackCode[1]) {
                    case 
0$rtn .= 'GP Track'; break;
                    case 
1$rtn .= 'Rally Cross'; break;
                    case 
2$rtn .= 'Car Park'; break;
                }
            break;
            case 
1$rtn 'South City ';
                switch(
$trackCode[1]) {
                    case 
0$rtn .= 'Classic'; break;
                    case 
1$rtn .= 'Sprint Track 1'; break;
                    case 
2$rtn .= 'Sprint Track 2'; break;
                    case 
3$rtn .= 'Long'; break;
                    case 
4$rtn .= 'Town Course'; break;
                    case 
5$rtn .= 'Chicane Route'; break;
                }
            break;
            case 
2$rtn 'Fern Bay ';
                switch(
$trackCode[1]) {
                    case 
0$rtn .= 'Club'; break;
                    case 
1$rtn .= 'Green Track'; break;
                    case 
2$rtn .= 'Gold Track'; break;
                    case 
3$rtn .= 'Black Track'; break;
                    case 
4$rtn .= 'Rally Cross'; break;
                    case 
5$rtn .= 'RallyX Green'; break;
                }
            break;
            case 
3$rtn 'Autocross ';
                switch(
$trackCode[1]) {
                    case 
0$rtn .= 'Autocross'; break;
                    case 
1$rtn .= 'Skid Pad'; break;
                    case 
2$rtn .= 'Drag Strip'; break;
                    case 
3$rtn .= '8 Lane Drag'; break;
                }
            break;
            case 
4$rtn 'Kyoto Ring ';
                switch(
$trackCode[1]) {
                    case 
0$rtn .= 'Oval'; break;
                    case 
1$rtn .= 'National'; break;
                    case 
2$rtn .= 'GP Long'; break;
                }
            break;
            case 
5$rtn 'Westhill ';
                switch(
$trackCode[1]) {
                    case 
0$rtn .= 'International'; break;
                }
            break;
            case 
6$rtn 'Aston ';
                switch(
$trackCode[1]) {
                    case 
0$rtn .= 'Cadet'; break;
                    case 
1$rtn .= 'Club'; break;
                    case 
2$rtn .= 'National'; break;
                    case 
3$rtn .= 'Historic'; break;
                    case 
4$rtn .= 'Grand Prix'; break;
                    case 
5$rtn .= 'Grand Touring'; break;
                    case 
6$rtn .= 'North'; break;
                }
            break;
            default: return 
'Unknown Track';
        }
        if (
$trackCode[2] === 1)
            return 
"$rtn Reversed";
        else
            return 
$rtn;
    }

<
html>
    <
head>
        <
title>Page for echo $_GET['racer']; </title>
    </
head>
    <
body>
        <
table>
            <
tbody>
   
$pst $SDK->get_pst($_GET['racer']);
        forEach (
$pst[0] as $key => $val):    
                <
tr>
       switch (
$key):
                case 
'distance':    
                    <
th>Meters Driven</th>
                    <
td>echo $val; </td>
           break;
                case 
'fuel':    
                    <
th>Fuel burned in cl</th>
                    <
td>echo $val; </td>
           break;
                case 
'laps':    
                    <
th>Laps Driven</th>
                    <
td>echo $val; </td>
           break;
                case 
'joined':    
                    <
th>Hosts joined</th>
                    <
td>echo $val; </td>
           break;
                case 
'win':    
                    <
th>Race wins</th>
                    <
td>echo $val; </td>
           break;
                case 
'races_finished':    
                    <
th>Races finished</th>
                    <
td>echo $val; </td>
           break;
                case 
'qual':    
                    <
th>Qualifications</th>
                    <
td>echo $val; </td>
           break;
                case 
'pole':    
                    <
th>Pole positions</th>
                    <
td>echo $val; </td>
           break;
                case 
'dragwins':    
                    <
th>Drags won</th>
                    <
td>echo $val; </td>
           break;
                case 
'ostatus':    
                    <
th>Online status</th>
                    <
td>php
                        
switch ($val) {
                            case 
0:    echo 'Offline'; break;
                            case 
1: echo 'Spectating'; break;
                            case 
2: echo 'In pits'; break;
                            case 
3: echo 'In race'; break;
                        }
                    </
td>
           break;
                case 
'last_time':    
                    <
th>Last active on</th>
                    <
td>echo date('d-m-Y H:i'$val); </td>
           break;
                case 
'track':    
                    <
th>Track</th>
                    <
td>echo trackToName($val); </td>
           break;
                default:

                    <
th>echo ucwords($key); </th>
                    <
td>echo $val; </td>
       endSwitch;    
                </
tr>
php
    
endForEach;

            </
tbody>
        </
table>
    </
body>
</
html>
?>

And this is the url, try it yourself: http://watf.ro/sig/test.php?racer=kantzorf

I'll try a PHP update, maybe that's the problem.
Last edited by kantzorf, .
kantzorf
S2 licensed
I have the same problem as Hoitjes in post #218, but it happens only if I upload the script on the online host. On localhost everything is fine.
kantzorf
S2 licensed
Oh, i was editing another copy of the page, not the one in htdocs .
kantzorf
S2 licensed
It looks like a great script, but I'm stuck . Anything I try the page looks like in the attached screenshot.

That's my index.php (found in this topic):

<?php 
php

include('lfsworldsdk.php');

print_r($SDK->get_pst('kantzorf'));

 
?>

I've set the SDK correctly.
FGED GREDG RDFGDR GSFDG