SA-MP Forums Archive
Problem Achievements - 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: Problem Achievements (/showthread.php?tid=587252)



Problem Achievements - Mititel - 29.08.2015

We have created a system of achievements, all well and good, goes perfectly I have no error or warning, but when I get on the server and make achievement gives me all you have, but after making relog can to recover whenever I want, not saved that being done by giving relog.


Re: Problem Achievements - MarvinPWN - 29.08.2015

Can you show us your functions which by you save and load it?


Re: Problem Achievements - darkhunter332 - 29.08.2015

you need to make a folder on scriptfiles that will save all the info about the player's Achievements.
Try to ask others how to do it.


Re: Problem Achievements - MarvinPWN - 29.08.2015

Quote:
Originally Posted by darkhunter332
Посмотреть сообщение
you need to make a folder on scriptfiles that will save all the info about the player's Achievements.
Try to ask others how to do it.
If he use MySQL he needn't create a folder in scriptfiles. When he use MySQL he has a databank.


Re: Problem Achievements - Mititel - 29.08.2015

pInfo - pAchievement0 up to pAchievement20

and are all OnPlayerLogin/Register/Login...


Re: Problem Achievements - Mititel - 01.09.2015

UP ?!?!?!


Re: Problem Achievements - Mititel - 02.09.2015

Quote:
Originally Posted by Mititel
Посмотреть сообщение
UP ?!?!?!
UP AGAIN.. !?


Re: Problem Achievements - Andre02 - 02.09.2015

When you are asking something, you should at least take time to explain it well, and trying to writing it with an understandable grammar, because right now i can't understand this:
Quote:

gives me all you have, but after making relog can to recover whenever I want, not saved that being done by giving relog.

I've try to understand this, and i guess you mean: "when you login and win an achievement, you get all the possible achivements, but when you reconnect, all the achievements disapear, is that right ?" If not tell me what's wrong on what i said

Also, you could post the code you are using to set the achivement, and when you save and load it , because with no code we can not help you


Re: Problem Achievements - Mititel - 03.09.2015

Yes it is ! Every time I can do that achievement reconnect as many times as I reconnect.


It is defined from 0 to 20
Код:
pAchievement0 to pAchievement20
Code:
Код:
if (PlayerInfo[playerid][pAchievement0] == 0)
                    {
                    ShowPlayerDialog(playerid,516,DIALOG_STYLE_MSGBOX,"Achievements:\n TEST (0)","TEST","Okay","Cancel");
                    GivePlayerCash(playerid, 5000);
                    PlayerInfo[playerid][pAchievement0] = 1;
                    }



Re: Problem Achievements - Mititel - 07.09.2015

UP!?