Making An Achievement +REP
#4

Look An Example

Quote:

new file[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), "/UserAchievements/%s.ini", pname);
if(dini_Int(file, "vehicle") == 1)
{
return 1;
}
else if(dini_Int(file, "vehicle") == 0)
{
ShowAchievement();
dini_IntSet(file, "vehicle", 1);
SendClientMessage(playerid, COLOR_GREEN, "Achievement Get! You got in a vehicle for the first time.");
return 1;
}

There was changed NAMEOFDATA
Reply


Messages In This Thread
Making An Achievement +REP - by truckingserver - 11.12.2012, 16:17
Re: Making An Achievement +REP - by XtremeR - 11.12.2012, 16:37
Re: Making An Achievement +REP - by truckingserver - 11.12.2012, 16:49
Re: Making An Achievement +REP - by truckingserver - 11.12.2012, 16:52
Re: Making An Achievement +REP - by truckingserver - 11.12.2012, 16:54
Re: Making An Achievement +REP - by DaRk_RaiN - 11.12.2012, 16:55
Re: Making An Achievement +REP - by truckingserver - 11.12.2012, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)