Advertisement
BigETI

Example strcmp checks in OPT...

Nov 21st, 2011
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.52 KB | None | 0 0
  1. //Example strcmp checks in OPT...
  2. public OnPlayerText(playerid, text[])
  3. {
  4.     if(!strcmp("A slow check", text, true))
  5.     {
  6.         //...
  7.         return 0;
  8.     }
  9.     else if(!strcmp("This is also slow", text, true))
  10.     {
  11.         //...
  12.         return 0;
  13.     }
  14.     else if(!strcmp("Lol", text, true))
  15.     {
  16.         //...
  17.         return 0;
  18.     }
  19.     else if(!strcmp("I Love Coookies", text, true))
  20.     {
  21.         //...
  22.         return 0;
  23.     }
  24.     else if(!strcmp("Idc", text, true))
  25.     {
  26.         //...
  27.         return 0;
  28.     }
  29.     else if(!strcmp("lmao", text, true))
  30.     {
  31.         //...
  32.         return 0;
  33.     }
  34.     //...
  35.     return 1;
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement