OnPlayerText problems?
#1

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

Код:
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);
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.
Reply
#2

do what you did above then at the bottom,

pawn Код:
stock SaveStats(playerid)
{
   // Do something here
}
Reply
#3

Well I know that, Thats what I mean. I know how to work with that. I mean how do I work with calling on publics and shit. So that a questionare starts when you register and use onplayertext like godfather to ask you age, gender etc
Reply
#4

So you want a /register, /login, and a tut?
Reply
#5

The register and login system is fine, The variable to set you to start the tutorial is fine, It just won't start, I don't understand this. Its not calling on anything, The publics just there and I don't know how to use it.
Reply
#6

Post-eh la code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)