View difference between Paste ID: egVti7X1 and A9PJPP7Z
SHOW: | | - or go back to the newest paste.
1
thailands, go go go sell this fix
2
3
RentServerPopUp.as
4
5
seacrh
6
Map.Name.text = "$FR_MapType";
7
8
add after function {...}
9
10
{
11
            if(currentSelectedMap > 0)
12
            {
13
               currentSelectedMap--;
14
            }
15
            else
16
            {
17
               currentSelectedMap = api.RentServer_Maps.length - 1;
18
            }
19
            currentMapID = api.RentServer_Maps[currentSelectedMap]["id"];
20
            Map.Value.text = api.RentServer_Maps[currentSelectedMap]["displayValue"];
21
         }
22
23
24
in bellow, add gain
25
26
{
27
            if(currentSelectedMap < api.RentServer_Maps.length - 1)
28
            {
29
               currentSelectedMap++;
30
            }
31
            else
32
            {
33
               currentSelectedMap = 0;
34
            }
35
            currentMapID = api.RentServer_Maps[currentSelectedMap]["id"];
36
            Map.Value.text = api.RentServer_Maps[currentSelectedMap]["displayValue"];
37
         }