SA-MP Forums Archive
Y_ini saving toys problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_ini saving toys problem (/showthread.php?tid=523867)



Y_ini saving toys problem - maximthepain - 04.07.2014

Hi in my saving system im getting warnings, can you please help me fix it?

pawn Код:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch

And here is the code which gives the warnings:
pawn Код:
for(new v = 0; v < MAX_PLAYERTOYS; v++)
{
    INI_WriteInt(File, "pt%dModelID=%d\n", v, PlayerToyInfo[playerid][v][ptModelID]);
    INI_WriteInt(File, "pt%dBone=%d\n", v, PlayerToyInfo[playerid][v][ptBone]);
    INI_WriteFloat(File, "pt%dPosX=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosX]);
    INI_WriteFloat(File, "pt%dPosY=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosY]);
    INI_WriteFloat(File, "pt%dPosZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptPosZ]);
    INI_WriteFloat(File, "pt%dRotX=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotX]);
    INI_WriteFloat(File, "pt%dRotY=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotY]);
    INI_WriteFloat(File, "pt%dRotZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptRotZ]);
    INI_WriteFloat(File, "pt%dScaleX=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleX]);
    INI_WriteFloat(File, "pt%dScaleY=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleY]);
    INI_WriteFloat(File, "pt%dScaleZ=%.5f\n", v, PlayerToyInfo[playerid][v][ptScaleZ]);
}
I'm probably not using the saving ini right, anyone who knows it better please send me a fix code for those errors (:


Re: Y_ini saving toys problem - maximthepain - 04.07.2014

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Format strings first then plug them in the function.
Can you show me example?