I declarated the String outside a Function at the top of the mainscript and String mystring = ""; doesn't work for me it says 'cannot assign initial value to global pointer'
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuSetCharacterSpeed(6/(GetPlayerCharacter(), GetScalingAt(character.[GetPlayerCharacter()].x, character.[GetPlayerCharacter()].y))*100);
function repeatedly_execute_always() {
if (IsKeyPressed(47)==1) set_textspeed(0);
else if (IsKeyPressed(93)==1) set_textspeed(1);
if (IsGUIOn(9)==1) {
if (timer==40) {GUIOff(9); timer=0; SetLabelText(4, 0, "Walk to");}
else timer++;
}
}
function set_textspeed(int id) {
if (id == 0) {
SetSliderValue(9, 0, GetSliderValue(9, 0)-1);
}
else if (id == 1) {
SetSliderValue(9, 0, GetSliderValue(9, 0)+1);
}
timer = 0;
if (IsGUIOn(9)==0) GUIOn(9);
game.text_speed = GetSliderValue(9,0)*6;
StrFormat(buffer, "Textspeed - %d", GetSliderValue(9, 0));
SetLabelText(4, 0, buffer);
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.029 seconds with 13 queries.