Storing a value.
#1

Hi. So i made wanted levels it works now can i somehow save a player's wanted level into something onplayerdisconnect? and set the same wanted level[the level on which he left] on him when he joins ?
Reply
#2

Save it with his pdata?
Reply
#3

I'm not using any enum for wanted level.Just SetPlayerWantedLevel and GetPlayerWantedLevel
Reply
#4

He means... do you have a enum for playerdata? in that enum create a var and store it in it and save it on your save fuction & load it on your load func
Reply
#5

Ah.. Aight. So i did this. new disable[MAX_PLAYERS] added pWantedLevel in playerinfo enum.under OnPlayerDisconnect Disable = GetPlayerWantedLevel(playerid); and PlayerInfo[playerid][pWantedLevel] = PlayerInfo[playerid][pWantedLevel]+Disable; will it work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)