Well, thanks a lot but I have few questions.
Are these stats server-side or client-side? (I mean can player edit his stats) (What is the path to it)
Is it correct?
customStatsTable.csv
PHP Code:
3150,kills
3151,score
3152,connects
3153,spawns
.gsc script
PHP Code:
getData( dataName )
{
return self getStat( int(tableLookup( "mp/customStatsTable.csv", 1, dataName, 0 )) );
}
setData( dataName, value )
{
self setStat( int(tableLookup( "mp/customStatsTable.csv", 1, dataName, 0 )), value );
}
addData( dataName, value )
{
newValue = getData( dataName ) + value;
self setStat( int(tableLookup( "mp/customStatsTable.csv", 1, dataName, 0 )), newValue );
}
mod.csv
PHP Code:
stringtable,mp/customStatsTable.csv