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

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
??
Reply
#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
#3

ohhh thanks alot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)