Strdel
From SA-MP Wiki
Strdel
Can be used to delete a part or all of a string.
(string[],start,end)
| string[] | The string to delete part of. |
| start | The position of the first character to delete. |
| end | The position of the last character to delete. |
This function does not 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 might be useful as well, as they're related to this function in one way or another.
- strcmp: Compare two strings to see if they are the same.
- strfind: Search for a substring in a string.
- strtok: Search for a variable typed after a space.
- strins: Put a string into another string.
- strlen: Check the length of a string.
- strmid: Extract characters from a string.
- strpack: Pack a string into a destination.
- strval: Find the value of a string.
- strcat: Contact two strings into a destination reference.
