Posts: 1,676
Threads: 44
Joined: Aug 2010
Reputation:
0
Where do you actully save it player data? because from showing you don't save anything.
Posts: 1,351
Threads: 35
Joined: Sep 2011
Reputation:
0
Trebuie sa faci cu pWantedLevel, cand logare, da-i wanted lui daca are pe pWantedLevel, cum ai pLevel, pAdmin etc. etc., cu ala Wanted[playerid], nu salvare ca salvare doar pe playerid, daca eu am intrat dupa unul care a avut wanted, eu iau wanted lui, deci, nu e asa bun. Incerca cum am zis mai sus.
He's Romanian, so I wrote it in Romanian.. but to avoid the disputes, here's a translation:
You need to do it with pWantedLevel, when he logs in, give him wanted if he has wanted on pWantedLevel, just as you have pLevel, pAdmin etc. etc., with the Wanted[playerid], it doesn't save because it saves only on the playerid, if I came on the game after someone who had wanted, I'd get his wanted level, so, this is not a good method. Try what I told you above.
Posts: 230
Threads: 27
Joined: May 2012
Reputation:
0
After this change, must to give wanted with "PlayerInfo[playerid][pWantedLevel] += 1;" ?
Posts: 1,351
Threads: 35
Joined: Sep 2011
Reputation:
0
Just do "+ 1", and use SetPlayerCriminal for the wanted stars. On OnPlayerDisconnect put SetPlayerCriminal(playerid, 0);
Posts: 1,351
Threads: 35
Joined: Sep 2011
Reputation:
0
Yes, they are old functions though. Replace them with pWanted and save those pWanted to the user files, like pAdmin, pLevel etc.
Posts: 230
Threads: 27
Joined: May 2012
Reputation:
0
I've saved WantedLevel[playerid] like pAdmin etc. Delete it?
PS: Give me an example how could give wanted stars.
PS2: SetPlayerCriminal include WantedLevel[playerid] & WantedPoints[playerid]. Are you sure that what you say is correct?