official repo of my SAMP includes
-
ConvertStrToInt
- Convert a string to a Integer number. -
StringSize
- Return the string size in a Integer. -
IsEqual
- Compare 2 strings. -
StrClone
- Copy a string to another.
new StrEx1[7];
StrClone(StrEx1[0], "Hello");
print(StrEx1[0]); //will output "Hello"
new StrEx1[7];
StrClone(StrEx1[0], "Hello");
if(StringSize(StrEx1[0]) == 5)
{
//this block will be executed
}
new StrEx1[3];
StrClone(StrEx1[0], "34");
if(ConvertStrToInt(StrEx1[0]) == 34)
{
//this block will be executed
}
new StrEx1[7];
new StrEx2[7];
StrClone(StrEx1[0], "Hello");
StrClone(StrEx2[0], "Hello");
if(IsEqual(StrEx1[0], StrEx2[0]))
{
//this block will be executed
}