Skip to content

Commit

Permalink
Update smlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasty committed Dec 21, 2017
1 parent a4fb9fa commit 504b9d1
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 504b9d1

Please sign in to comment.