• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [SOLVED] How Find New ID from enum for SQL with forward loop function ?
#2
An example how to get free id from a variable enum:

Code:
GetFreeSlot() { ? ? for (new i; i < size; i) { ? ? ? ? if (!Var[i][InUse]) { ? ? ? ? ? ? return i; ? ? ? ? } ? ? } ? ? return -1; }
  Reply


Messages In This Thread
RE: HELP! How Find New ID from enum for SQL with forward loop function ? - by Radical - 2021-05-18, 12:52 AM