20.09.2009, 02:41
I pretty much adapted a copy of the questionare from the tutorial to my script and for some reason it refuses to start when you register, I'm used making code like
And it calls on SaveStats, I'm not used to working with publics and don't understand how to work with this. I just don't know what the problem is.
Код:
public OnPlayerDisconnect(playerid) { RegisterStep[playerid] = 0; if(sprunkTimer[playerid] != -1){ KillTimer(sprunkTimer[playerid]); sprunkTimer[playerid] = -1; } dead[playerid] = 0; injured[playerid] = 0; if(PlayerInfo[playerid][pLogged] == 1) SaveStats(playerid);