Skip to content

Commit

Permalink
Merge pull request #107 from ghost/master
Browse files Browse the repository at this point in the history
Update smlib
  • Loading branch information
JulienKluge authored Mar 22, 2019
2 parents dbd3875 + 504b9d1 commit c3e2153
Show file tree
Hide file tree
Showing 22 changed files with 2,383 additions and 727 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <smlib/files>
#include <smlib/game>
#include <smlib/math>
#include <smlib/menus>
//#include <smlib/pluginmanager>
#include <smlib/server>
#include <smlib/strings>
#include <smlib/sql>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ stock Array_FindValue(any:array[], size, any:value, start=0)
return i;
}
}

return -1;
}

Expand All @@ -53,7 +53,7 @@ stock Array_FindString(const String:array[][], size, const String:str[], bool:ca
return i;
}
}

return -1;
}

Expand All @@ -74,18 +74,18 @@ stock Array_FindLowestValue(any:array[], size, start=0)
new any:value = array[start];
new any:tempValue;
new x = start;

for (new i=start; i < size; i++) {

tempValue = array[i];

if (tempValue < value) {
value = tempValue;
x = i;
}

}

return x;
}

Expand All @@ -106,18 +106,18 @@ stock Array_FindHighestValue(any:array[], size, start=0)
new any:value = array[start];
new any:tempValue;
new x = start;

for (new i=start; i < size; i++) {

tempValue = array[i];

if (tempValue > value) {
value = tempValue;
x = i;
}

}

return x;
}

Expand Down
Loading

0 comments on commit c3e2153

Please sign in to comment.