Strdel

From SA-MP Wiki

Jump to: navigation, search


Delete part of a string.


Parameters:
(string[], start, end)
string[]The string to delete part of.
startThe position of the first character to delete.
endThe position of the last character to delete.


ReturnsThis function doesn't return a specific value


new string[42] = "We will delete everything apart from this";
strdel(string, 0, 37); // string is now "this"

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

  • Strcmp: Compare two strings to check if they are the same.
  • Strfind: Search for a string in a string.
  • Strtok: Get the next word/parameter in a string.
  • Strins: Insert text into a string.
  • Strlen: Get the length of the string.
  • Strmid: Extract part of a string into another string.
  • Strpack: Pack a string into a destination.
  • Strval: Convert a string into an integer.
  • Strcat: Concatenate two strings into a destination reference.
Personal tools
In other languages