About True, False, 1, 0 [Solved This was just one Question :P]
#2

Quote:
Originally Posted by DarK TeaM PT
Hey all today i want know what is the diference of the

pawn Code:
True and 1;
the diference of the

pawn Code:
False and the 0;
and btw if you know for what is used the
pawn Code:
while
and
pawn Code:
break
??
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.
Reply


Messages In This Thread
About True, False, 1, 0 [Solved This was just one Question :P] - by SlashPT - 27.02.2010, 21:59
Re: About True, False, 1, 0 - by ¤Adas¤ - 27.02.2010, 22:08
Re: About True, False, 1, 0 - by SlashPT - 27.02.2010, 22:16

Forum Jump:


Users browsing this thread: 3 Guest(s)