You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to "re-write" the default callbacks, so we can use dynamically sized strings in default callbacks
Example:
public OnPlayerText(playerid, text[])
I started using this plugin few hours ago and I'm a newbie in pawn so I would like to know if we can do this or is "text[]" already a dynamically sized string by default?
The text was updated successfully, but these errors were encountered:
I tried editing the a_samp file to "forward OnPlayerText(playerid, String:text[]);" it seems to work but I'm not sure that it's that easily editable, right?
There is no need to. When a callback is executed, the necessary space for the string is always allocated so it fits. Use str_new to construct the dynamic string if you need it.
Is it possible to "re-write" the default callbacks, so we can use dynamically sized strings in default callbacks
Example:
public OnPlayerText(playerid, text[])
I started using this plugin few hours ago and I'm a newbie in pawn so I would like to know if we can do this or is "text[]" already a dynamically sized string by default?
The text was updated successfully, but these errors were encountered: