BigETI

Some kind of "How to freeze your script snippet"

Jan 6th, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.33 KB | None | 0 0
  1. new bool:check = false, count = 0;
  2. stock doCheck()
  3. {
  4.     while(check) count++;
  5.     count = 0;
  6. }
  7. public OnPlayerCommandText(playerid, cmdtext[])
  8. {
  9.     if(!strcmp("/check", cmdtext, true))
  10.     {
  11.         check = true;
  12.         doCheck();
  13.         return 1;
  14.     }
  15.     else if(!strcmp("/nocheck", cmdtext, true))
  16.     {
  17.         check = false;
  18.         return 1;
  19.     }
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment