Posts: 762
Threads: 157
Joined: Feb 2009
Reputation:
0
Well yes I already know that, that wasn't the question...
Posts: 603
Threads: 12
Joined: Sep 2007
Reputation:
0
By the location of the bool, I think its for the return. Such as; if it was successfully inserted, it returns true.
Posts: 6,340
Threads: 58
Joined: May 2009
Reputation:
0
strins - Insert a sub-string in a string
Syntax: bool: strins(string[], const substr[], index, maxlength=sizeof string)
string The source and destination string.
substr The string to insert in parameter string.
index The character position of string where substr is inserted. When 0, substr is prepended to string.
maxlength If the length of dest would exceed maxlength cells
after in
Returns: true on success and false on failure. - that's why it's boolean tag.
Notes: During insertion, the substr parameter may be converted from a packed string to an unpacked string, or vice versa, in order to match string. If the total length of string would exceed maxlength cells after inserting substr, the function raises an error.
This can be found at (PAWN) String_Manipulation.pdf file.
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
Your Bill Gates strins is different from sa:mp's one. Same as most functions in the includes you get with the server