Guest User

Untitled

a guest
Sep 9th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. for(new i=0;i<10;i++)
  2. {
  3.     if(PlayerInfo[id][Item][i] == 0) // if slot is vacant
  4.     {
  5.         PlayerInfo[id][Item][i] = 1; // set slot to item (v1)
  6.         break;
  7.     }
  8.     if(PlayerInfo[id][Item][i] == 1) // if slot has v1 item
  9.     {
  10.         PlayerInfo[id][Item][i] = 2; // upgrade to v2 item
  11.         break;
  12.     }
  13.     if(PlayerInfo[id][Item][i] == 2) // if slot has v2 item
  14.     {
  15.         PlayerInfo[id][Item][i] = 3; // upgrade to v3 item
  16.         break;
  17.     }
  18. }
Add Comment
Please, Sign In to add comment