Toys are not saving
#1

I have function for toys saving but they are not saving

This is under public OnPlayerStatsUpdate(playerid)

PHP код:
            for(new 0MAX_PLAYERTOYSv++)
                {
                    
format(var, 32"pt%dModelID=%d\n"vPlayerToyInfo[playerid][v][ptModelID]);fwrite(hFile, var);
                    
format(var, 32"pt%dBone=%d\n"vPlayerToyInfo[playerid][v][ptBone]);fwrite(hFile, var);
                    
format(var, 32"pt%dPosX=%.5f\n"vPlayerToyInfo[playerid][v][ptPosX]);fwrite(hFile, var);
                    
format(var, 32"pt%dPosY=%.5f\n"vPlayerToyInfo[playerid][v][ptPosY]);fwrite(hFile, var);
                    
format(var, 32"pt%dPosZ=%.5f\n"vPlayerToyInfo[playerid][v][ptPosZ]);fwrite(hFile, var);
                    
format(var, 32"pt%dRotX=%.5f\n"vPlayerToyInfo[playerid][v][ptRotX]);fwrite(hFile, var);
                    
format(var, 32"pt%dRotY=%.5f\n"vPlayerToyInfo[playerid][v][ptRotY]);fwrite(hFile, var);
                    
format(var, 32"pt%dRotZ=%.5f\n"vPlayerToyInfo[playerid][v][ptRotZ]);fwrite(hFile, var);
                    
format(var, 32"pt%dScaleX=%.5f\n"vPlayerToyInfo[playerid][v][ptScaleX]);fwrite(hFile, var);
                    
format(var, 32"pt%dScaleY=%.5f\n"vPlayerToyInfo[playerid][v][ptScaleY]);fwrite(hFile, var);
                    
format(var, 32"pt%dScaleZ=%.5f\n"vPlayerToyInfo[playerid][v][ptScaleZ]);fwrite(hFile, var);
                } 
Reply


Messages In This Thread
Toys are not saving - by FaZeRs - 08.02.2014, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)