Advertisement
Guest User

Untitled

a guest
Oct 14th, 2011
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.28 KB | None | 0 0
  1. stock cmdparam(full[], first[], length=sizeof first)
  2. {
  3.     new space = strfind(full, " ");
  4.     if(space == -1)
  5.     {
  6.         format(first, length, full);
  7.         strdel(full, 0, strlen(full));
  8.     }
  9.     else
  10.     {
  11.         strmid(first, full, 0, space, length);
  12.         strdel(full, 0, space + 1);
  13.     }
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement