Sure, up there i save the codes in the folder by OnPlayerUpdate
Код HTML:
format(var, 32, "Ranecx=%.1f\r\n", PlayerInfo[playerid][pRanecx]);fwrite(hFile, var);
format(var, 32, "Ranecy=%.1f\r\n", PlayerInfo[playerid][pRanecy]);fwrite(hFile, var);
format(var, 32, "Ranecz=%.1f\r\n", PlayerInfo[playerid][pRanecz]);fwrite(hFile, var);
format(var, 32, "Ranecry=%.1f\r\n", PlayerInfo[playerid][pRanecrx]);fwrite(hFile, var);
format(var, 32, "Ranecrx=%.1f\r\n", PlayerInfo[playerid][pRanecry]);fwrite(hFile, var);
format(var, 32, "Ranecrz=%.1f\r\n", PlayerInfo[playerid][pRanecrz]);fwrite(hFile, var);
format(var, 32, "Ranecsy=%.1f\r\n", PlayerInfo[playerid][pRanecsx]);fwrite(hFile, var);
format(var, 32, "Ranecsx=%.1f\r\n", PlayerInfo[playerid][pRanecsy]);fwrite(hFile, var);
format(var, 32, "Ranecsz=%.1f\r\n", PlayerInfo[playerid][pRanecsz]);fwrite(hFile, var);
format(var, 32, "RanecModel=%d\r\n",PlayerInfo[playerid][pRanecModel]);fwrite(hFile, var);
And here, i load it after login.
Код HTML:
if( strcmp( key , "Ranecx" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecx] = floatstr( val ); }
if( strcmp( key , "Ranecy" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecy] = floatstr( val ); }
if( strcmp( key , "Ranecz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecz] = floatstr( val ); }
if( strcmp( key , "Ranecrx" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecrx] = floatstr( val ); }
if( strcmp( key , "Ranecry" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecry] = floatstr( val ); }
if( strcmp( key , "Ranecrz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecrz] = floatstr( val ); }
if( strcmp( key , "Ranecsx" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecsx] = floatstr( val ); }
if( strcmp( key , "Ranecsy" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecsy] = floatstr( val ); }
if( strcmp( key , "Ranecsz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecsz] = floatstr( val ); }
if( strcmp( key , "RanecModel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRanecModel] = strval( val ); }