Need help, how to make load points with loop? Without loop they are loading fine.
PHP Code:
Load_Data( iPlayer )
{
new szKey[ 64 ];
new szData[ 64 ];
formatex( szKey, charsmax( szKey ), "%s", g_szAuthID[ iPlayer ] );
//for( new i = 0; i < g_iTotal; i++ )
// formatex( szData, charsmax( szData ), "%d", g_iPoints[ iPlayer ] );
nvault_get( g_iVault, szKey, szData, charsmax( szData ) );
new szPoints[ 8 ];
parse( szData, szPoints, charsmax( szPoints ) );
for( new i = 0; i < g_iTotal; i++ )
{
g_iPoints[ iPlayer ][ i ] = str_to_num( szPoints );
log_amx( "%d ", g_iPoints[ iPlayer ][ i ] );
}
}