OnPlayerText problems? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerText problems? (
/showthread.php?tid=98285)
OnPlayerText problems? -
MisterTickle - 20.09.2009
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.
Re: OnPlayerText problems? -
ilikepie2221 - 20.09.2009
do what you did above then at the bottom,
pawn Код:
stock SaveStats(playerid)
{
// Do something here
}
Re: OnPlayerText problems? -
MisterTickle - 20.09.2009
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
Re: OnPlayerText problems? -
ilikepie2221 - 20.09.2009
So you want a /register, /login, and a tut?
Re: OnPlayerText problems? -
MisterTickle - 20.09.2009
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.
Re: OnPlayerText problems? -
ilikepie2221 - 20.09.2009
Post-eh la code.