Advertisement
DraKiNs

[COD] mkdir sa:mp

Jun 26th, 2011
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. static cell AMX_NATIVE_CALL nativeMKDIR(AMX * amx, cell * params)
  2. {
  3.     char *sDir = NULL;
  4.     amx_StrParam(amx, params[1], sDir);
  5.  
  6.     if(!sDir) return 2;    
  7.     return mkdir(sDir);
  8. }
  9.  
  10. AMX_NATIVE_INFO HelloWorldNatives[ ] =
  11. {
  12.     { "mkdir",      nativeMKDIR},
  13.     { 0,                    0 }
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement