-
Notifications
You must be signed in to change notification settings - Fork 0
Natives (Core)
toketwo edited this page May 4, 2024
·
9 revisions
- Parameters:
msg
: The text to print, handled by DiscordAMX first (printf, print are AMX default ones, use them too!)- Returns:
- Always 1.
- Parameters:
callback
: A string containing the callback name that should be called each time the timers runs out.interval
: Milisecond duration time of the timer.bool:repeat
: Boolean (TRUE OR FALSE) if the timer should repeat using the above declared interval.- Returns:
- Always 1 until complete failure to initiate a timer.
- Parameters:
callback
: A string containing the callback name that should be called each time the timers runs out.interval
: Milisecond duration time of the timer.bool:repeat
: Boolean (TRUE OR FALSE) if the timer should repeat using the above declared interval.format
: Special format indicating the types of values the timer will pass.{Float,_}:...
: Indefinite number of arguments to pass (must follow format specified in previous parameter)- Returns:
- Always 1 until complete failure to initiate a timer.
❗ Example: SetTimerEx("Test", 1000, true, "siif", "Passed string", 1337, 69, 8.1);
Specifier | Meaning |
---|---|
i | Integer |
f | Float |
s | String |
- Parameters:
timerid
: The timer id, as integer.- Returns:
- 1 when timer found. 0 if not.
- Parameters:
dest
: The destination to copy the formatted text to.size
: The destination's size.pack
: Should the string be packed? true or false.format
: The formatted string.{Fixed,Float,_}:...
: All the values formatted into destination.- Returns:
- Always 1.
❗ This is a PAWN CORE function, not implemented by DiscordAMX. You can use plenty of CORE functions that come with pawn!
- Parameters:
- None.
- Returns:
- The UNIX time (seconds) as integer.
- Parameters:
script[]
: The name of the script's AMX file inside /scripts/- Returns:
- 1 if loaded, 0 if not.
- Parameters:
script[]
: The name of the script that has been loaded previously.- Returns:
- 1 if unloaded successfully, 0 if not.
This function does a simple thing; Comparing two strings.
- Parameters:
string
: The string to compare from.compare
: The string to compare it with.ignorecase
: If higher/lower-case letters should be treated equal.- Returns:
- 1 if strings are equal, 0 if not.
This function calls a remote function in any loaded script.
- Parameters:
function
: The name of the function to call.format
: The parameter's types, i(nteger), f(loat) and s(tring), in a string.{Float,...}
: The values to pass.- Returns:
- This function always returns 1.