Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit c3e2153

Browse files
authored
Merge pull request #107 from ghost/master
Update smlib
2 parents dbd3875 + 504b9d1 commit c3e2153

File tree

22 files changed

+2383
-727
lines changed

22 files changed

+2383
-727
lines changed

Resources/Misc/Configurations/sm_1_8_5914_smlib_0_11/include/smlib.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include <smlib/files>
2222
#include <smlib/game>
2323
#include <smlib/math>
24+
#include <smlib/menus>
25+
//#include <smlib/pluginmanager>
2426
#include <smlib/server>
2527
#include <smlib/strings>
2628
#include <smlib/sql>

Resources/Misc/Configurations/sm_1_8_5914_smlib_0_11/include/smlib/arrays.inc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ stock Array_FindValue(any:array[], size, any:value, start=0)
2727
return i;
2828
}
2929
}
30-
30+
3131
return -1;
3232
}
3333

@@ -53,7 +53,7 @@ stock Array_FindString(const String:array[][], size, const String:str[], bool:ca
5353
return i;
5454
}
5555
}
56-
56+
5757
return -1;
5858
}
5959

@@ -74,18 +74,18 @@ stock Array_FindLowestValue(any:array[], size, start=0)
7474
new any:value = array[start];
7575
new any:tempValue;
7676
new x = start;
77-
77+
7878
for (new i=start; i < size; i++) {
79-
79+
8080
tempValue = array[i];
81-
81+
8282
if (tempValue < value) {
8383
value = tempValue;
8484
x = i;
8585
}
86-
86+
8787
}
88-
88+
8989
return x;
9090
}
9191

@@ -106,18 +106,18 @@ stock Array_FindHighestValue(any:array[], size, start=0)
106106
new any:value = array[start];
107107
new any:tempValue;
108108
new x = start;
109-
109+
110110
for (new i=start; i < size; i++) {
111-
111+
112112
tempValue = array[i];
113-
113+
114114
if (tempValue > value) {
115115
value = tempValue;
116116
x = i;
117117
}
118-
118+
119119
}
120-
120+
121121
return x;
122122
}
123123

0 commit comments

Comments
 (0)