SA-MP Forums Archive
Textdraws & public - 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)
+--- Thread: Textdraws & public (/showthread.php?tid=510495)



Textdraws & public - Lidor124 - 01.05.2014

First question:
Is that making a recursion?
Код:
in the top of script:
new mytimer;

In command like /sethelp or something....
mytimer = SetTimer("Timer", 5000, false);

forward Timer();
public Timer()
{
codes bla bla bla....
KillTimer(mytimer); // there is here a recursion?
return 1;
}
Second question:

I saw this in a server and i tried to copy to my server :P:
How do i they made it so clear?






That's mine, ignore the blue color:



Re: Textdraws & public - Konstantinos - 01.05.2014

Recursion is when a function calls itself. Although the message (after compiling) can be popped up when the bytes exceed the value of stack/heap size.


Re: Textdraws & public - Lidor124 - 01.05.2014

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Recursion is when a function calls itself. Although the message (after compiling) can be popped up when the bytes exceed the value of stack/heap size.
So you mean:
Код:
public Timer()
{
Timer();
 bla bla
return 1;
}
And what about the textdraw? can you help me with that?