Skip to content

TGConnectFromEnv

__SyS__ edited this page Jan 21, 2019 · 3 revisions
  • TGBot:TGConnectFromEnv(const variable[])

    • Parameters

      • const variable[] - environment variable name as string literal
    • Returns

      • if successfully connected an integer with tag TGBot representing index of bot instance in plugin memory
      • if failed INVALID_BOT_ID
    • Example

       new TGBot:bot = TGConnectFromEnv("SAMP_TG_BOT");
Clone this wiki locally