SA-MP Forums Archive
What's wrong ? Why dont show tutorial ? - 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: What's wrong ? Why dont show tutorial ? (/showthread.php?tid=66665)



What's wrong ? Why dont show tutorial ? - PlayMaker - 23.02.2009

http://pastebin.com/m1ede3d6a

?

I know that " ShowPlayerTutorial(); " don't work but what is supposed to put there ?

Help me plz

Regards.



Re: What's wrong ? Why dont show tutorial ? - Rks25 - 23.02.2009

u need an timer that repeats activating that function, cuz else that variable sticks at it starts.


Re: What's wrong ? Why dont show tutorial ? - PlayMaker - 23.02.2009

Could u help me with examples ?

I'll apreciate


Re: What's wrong ? Why dont show tutorial ? - pspleo - 23.02.2009

The whole script is broke. I'll try to fix it.


EDIT:
http://pastebin.com/f45ef58e0
I've included some comments.

Leopard


Re: What's wrong ? Why dont show tutorial ? - Rks25 - 23.02.2009


make variable like:
pawn Код:
ineedtolearn; // at top
than at command do:
pawn Код:
ineedtolearn = SetTimer("ShowPlayerTutorial",1000,1);
+
TutTime[playerid]= 1;
and when the tutorial is done for the player do:
pawn Код:
KillTimer(ineedtolearn);

You are done.


Re: What's wrong ? Why dont show tutorial ? - PlayMaker - 23.02.2009

Quote:
Originally Posted by [K4L
Leopard ]
The whole script is broke. I'll try to fix it.


EDIT:
http://pastebin.com/f45ef58e0
I've included some comments.

Leopard
I've gor 1 error in line 89

btw, In OnPlayerCommandText the " ShowPlayerTutorial(playerid); " is the right thing ? It gives me 1 warning



Quote:
Originally Posted by Rks_
than at command do:
pawn Код:
ineedtolearn = SetTimer("ShowPlayerTutorial",1000,1);
+
TutTime[playerid]= 1;
When put this in OnPlayerCommandText() it gets error.


Re: What's wrong ? Why dont show tutorial ? - Rks25 - 23.02.2009

what error you get?
And woow Leo, you could also use the timer once.


Re: What's wrong ? Why dont show tutorial ? - pspleo - 23.02.2009

Quote:
Originally Posted by Rks_
what error you get?
And woow Leo, you could also use the timer once.
Yes, i know. But i prefer that type.

Oh, and WhoCares?

Quote:
Originally Posted by WhoCares?
Quote:
Originally Posted by [K4L
Leopard ]
The whole script is broke. I'll try to fix it.


EDIT:
http://pastebin.com/f45ef58e0
I've included some comments.

Leopard
I've gor 1 error in line 89

btw, In OnPlayerCommandText the " ShowPlayerTutorial(playerid); " is the right thing ? It gives me 1 warning
Try changng the forward thing too...


Re: What's wrong ? Why dont show tutorial ? - PlayMaker - 23.02.2009

Quote:
Originally Posted by Rks_
what error you get?
This:

error 025: function heading differs from prototype

In line 89


Re: What's wrong ? Why dont show tutorial ? - PlayMaker - 23.02.2009

Plz, I beg u :'p...

Help me with this...

btw, Sorry double post.