toribio

toribio

Feb 16th, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.65 KB | None | 0 0
  1. //Pawn fail
  2.  
  3. #include <a_samp>
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     Funcao(5);
  8.     Funcao(Menu:88);
  9.     Funcao(67.9);
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     return 1;
  16. }
  17.  
  18. stock Funcao({Float, Menu, _}:value)
  19. {
  20.     new Float:tag1, Menu:tag2, tag3;
  21.     //Gambiarra pra não dar o warning 203
  22.     tickcount(_:tag1);
  23.     tickcount(_:tag2);
  24.     tickcount(_:tag3);
  25.  
  26.     switch(tagof(value))
  27.     {
  28.         case tagof(tag1):
  29.             printf("É um Float: %f", value);
  30.         case tagof(tag2):
  31.             printf("É um Menu: id %d", _:value);
  32.         case tagof(tag3):
  33.             printf("É um valor comum: %d", value);
  34.     }
  35. }
Add Comment
Please, Sign In to add comment