Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new i=0;i<10;i++)
- {
- if(PlayerInfo[id][Item][i] == 0) // if slot is vacant
- {
- PlayerInfo[id][Item][i] = 1; // set slot to item (v1)
- break;
- }
- if(PlayerInfo[id][Item][i] == 1) // if slot has v1 item
- {
- PlayerInfo[id][Item][i] = 2; // upgrade to v2 item
- break;
- }
- if(PlayerInfo[id][Item][i] == 2) // if slot has v2 item
- {
- PlayerInfo[id][Item][i] = 3; // upgrade to v3 item
- break;
- }
- }
Add Comment
Please, Sign In to add comment