SHARE
TWEET

Untitled

a guest Nov 11th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. COMMAND:editjob(playerid, params[])
  3. {
  4.     new string[256];
  5.     new idjob = -1;
  6.  
  7.  
  8.  
  9.  
  10.     if(sscanf(params, "d", idjob))
  11.     {
  12.         SendMessage(playerid, -1, "Usage: /editjob <idjob (/jobs)>");
  13.         return 1;
  14.     }
  15.  
  16.  
  17.     for(new i = 0; i < sizeof(JobInfo); i++)
  18.     {
  19.         if(JobInfo[i][jSQL] != idjob)
  20.         {
  21.  
  22.             idjob = i;
  23.  
  24.         }
  25.     }
  26.  
  27.     if(idjob == -1)
  28.     {
  29.         SendMessage(playerid, -1, "No");
  30.         return 1;
  31.     }
  32.  
  33.     SendMessage(playerid, -1, "Yes");
  34.  
  35.  
  36.  
  37.  
  38.     return 1;
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top