About True, False, 1, 0 [Solved This was just one Question :P] - 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: About True, False, 1, 0 [Solved This was just one Question :P] (
/showthread.php?tid=130684)
About True, False, 1, 0 [Solved This was just one Question :P] -
SlashPT - 27.02.2010
Hey all today i want know what is the diference of the
the diference of the
and btw if you know for what is used the
and
??
Re: About True, False, 1, 0 -
¤Adas¤ - 27.02.2010
Quote:
Originally Posted by DarK TeaM PT
Hey all today i want know what is the diference of the
the diference of the
and btw if you know for what is used the and ??
|
True and 1 are the same. False and 0 are the same too.
While works like this:
pawn Code:
stock Wait(interval)
{
new TickCount = GetTickCount();
while(GetTickCount() - TickCount < interval) DoNothing();
return true;
}
For example, if interval is 50, this function will freeze the whole server for 50ms.
It is like "if", but it is repeating.
Break can be only used in "for" or "while".
It breaks current function.
Re: About True, False, 1, 0 -
SlashPT - 27.02.2010
ohhh thanks alot