Posts: 203
Threads: 14
Joined: Jul 2012
Код:
PlayerInfo[playerid][dRank] = 3;
how do i do this in player connect?
Posts: 17
Threads: 2
Joined: Oct 2013
Reputation:
0
Keep in mind setting that on when the player connects will set it as default for everybody as they connect. I'm not sure exactly what you're trying to do, but just remember, if you're trying to load stats, do so by reading a file, and such, first.
Posts: 1,351
Threads: 35
Joined: Sep 2011
Reputation:
0
You should put the line under where your file gets parsed for being used with your enumerated variables. However, you could just put it on the first line under OnPlayerDisconnect as if you're doing it under OnPlayerConnect, the parsing will overwrite it anyway, so that won't work.
Posts: 203
Threads: 14
Joined: Jul 2012
So i'll just put this PlayerInfo[playerid][dRank] = 3; on playerconnect first line?
I am trying to give everyone donor rank level 3.
Posts: 203
Threads: 14
Joined: Jul 2012
Posts: 166
Threads: 26
Joined: May 2013
Reputation:
0
Then put under Onplayerspawn.