Hi
I've been trying for few days now to 'set' items into a database, so that I can 'get' them out later to put in a TopUser table.
I've tried
Although the item descriptions appear in the database (I suspect its due to my OnConnectClose sub), there's no value there.
Can anyone let me know which of these I should be using, and where/when?
I've included my dskill lapper file as text file to make it easier to open.
I've been trying for few days now to 'set' items into a database, so that I can 'get' them out later to put in a TopUser table.
I've tried
<?php
SetCurrentPlayerVar ("average_speed_kmh", $average_speed_kmh);
?>
<?php
SetCurrentPlayerVar( "average_speed_kmh", ToNum( GetCurrentPlayerVar( "average_speed_kmh" );
?>
<?php
SetCurrentPlayerVar( "average_speed_kmh",GetStoredValue( $userName . "average_speed_kmh" ) );
?>
<?php
SetStoredValue( $userName . "average_speed_kmh", GetCurrentPlayerVar( "average_speed_kmh" ) );
?>
<?php
setUserStoredValue( ("average_speed_kmh", $average_speed_kmh);
?>
Can anyone let me know which of these I should be using, and where/when?
I've included my dskill lapper file as text file to make it easier to open.