Bug with working with text
This is my code
Simba Code:
Name := GetUpText;
Writeln(Name);
NB := Name;
NInt := Length(Name);
Delete(NB, 2, 70);
Name := GetUpText;
Delete(Name, NInt - 20, 20);
If NB = 'W' Then Delete(Name, 1, 9);
If NB = 'A' Then Delete(Name, 1, 6);
Name:=Copy(Name , 1 ,9);
Writeln(Name);
Wait(500);
Now, This piece of code worked with all the other player on my screen, e.g)
Simba Code:
Attack Zezima / 2 More Options
Zezi
with the exception of this person (Hunee x).
Simba Code:
AttacK Hunee x / 2 more options
Huns
It gets the uptext right, but it magically adds a s in the end. When I went back to change the code to name:='Attack hunee xxxxxxxxxx'; it gives me the correct answer without the addition of the 's'.