22.11.2012, 14:21
I am making a tutorial system so when player spawns they have the choice to do the tutorial or dont do it all. But when they do the tutorial I want it to save in their .ini file. For example Its like this when a player hasnt done their tutorial Tutorial = 0 and when they have done their tut I want it to be like this
Tutorial = 1.
I have tried adding the saving code at the end of the tutorial but it hasnt worked my code is below. I also use Y_INI for my saving system.
Tutorial = 1.
I have tried adding the saving code at the end of the tutorial but it hasnt worked my code is below. I also use Y_INI for my saving system.
Код:
if(Tutcheckpoint[playerid] == 7)
{
DisablePlayerCheckpoint(playerid);
Tutcheckpoint[playerid] = 0;
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------[The End]----------------------------------");
SendClientMessage(playerid, COLOR_YELLOW, "You've made it to the end and now that you know your way around its time to have fun!");
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------------");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Tutorial",1);
INI_Close(File);


