? A lil help :-) (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
What's going on?? See: Site Update March 2022

A lil help :-)

  • #1 ✎ 88 Jacklack3 Drawing I like to draw! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself Video Games I like to play video games! Hobbies So i have been using DEF commands to make my plugin for smilebasic! But i was wondering... Is there a way to have like a string to use? Like how would this DEF PRINT (text) PRINT (text) Translate to SmileBasic? Posted
  • #2 ✎ 1134 snail_ Power User QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!" That's the gist of it. Posted
  • #3 ✎ 88 Jacklack3 Drawing I like to draw! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself Video Games I like to play video games! Hobbies
    DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!" That's the gist of it.
    Thanks!
    Posted
  • #4 ✎ 248 UltraPhoenix4 Third Year My account is over 3 years old Website Bees Hidden Easter Eggs Avatar Taboo I didn't change my avatar for 180 days Website So you're trying to make basic more basic? Posted
  • #5 ✎ 88 Jacklack3 Drawing I like to draw! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself Video Games I like to play video games! Hobbies
    So you're trying to make basic more basic?
    No i was just using that as a example.
    Posted
  • #6 ✎ 229 16bitcoder Say is in my interpreter as 'print' Posted
  • #7 ✎ 88 Jacklack3 Drawing I like to draw! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself Video Games I like to play video games! Hobbies
    DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!" That's the gist of it.
    For some reason im getting a error called Type mismatch in (blah) Im using a repeat and until command UNTIL ALARM==ANOT$ is what its saying i mistyped i guess.
    Posted
  • #8 ✎ 89 Krondelo Need to see your source code. Posted
  • #9 ✎ 68 triangle First Week Joined in the very first week of SmileBASIC Source Website Query Denied Hidden Easter Eggs Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!" That's the gist of it.
    For some reason im getting a error called Type mismatch in (blah) Im using a repeat and until command UNTIL ALARM==ANOT$ is what its saying i mistyped i guess.
    What are the values of ALARM and ANOT$? There would be a type mismatch error because ALARM is a real/int type(depending on the OPTION) as it doesn't have a type suffix and ANOT$ is a string as it has the $ suffix.
    Posted
  • #10 ✎ 88 Jacklack3 Drawing I like to draw! Hobbies Day Person I like the warm sunshine and wake up early! Express Yourself Video Games I like to play video games! Hobbies
    DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!" That's the gist of it.
    For some reason im getting a error called Type mismatch in (blah) Im using a repeat and until command UNTIL ALARM==ANOT$ is what its saying i mistyped i guess.
    What are the values of ALARM and ANOT$? There would be a type mismatch error because ALARM is a real/int type(depending on the OPTION) as it doesn't have a type suffix and ANOT$ is a string as it has the $ suffix.
    Well it plays a alarm sound and it basically loops and it stops looping when the amount of alarms playing was the number you inputed. So as a example i put 1 so it would play a alar noise. It works but then the error occurs.
    Posted
  • #11 ✎ 68 triangle First Week Joined in the very first week of SmileBASIC Source Website Query Denied Hidden Easter Eggs Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    DEF SAY TEXT$ PRINT TEXT$ END '--- SAY "HELLO!" That's the gist of it.
    For some reason im getting a error called Type mismatch in (blah) Im using a repeat and until command UNTIL ALARM==ANOT$ is what its saying i mistyped i guess.
    What are the values of ALARM and ANOT$? There would be a type mismatch error because ALARM is a real/int type(depending on the OPTION) as it doesn't have a type suffix and ANOT$ is a string as it has the $ suffix.
    Well it plays a alarm sound and it basically loops and it stops looping when the amount of alarms playing was the number you inputed. So as a example i put 1 so it would play a alar noise. It works but then the error occurs.
    The string "1" is not equal to the number 1. You need to convert to a number with the VAR() function. Change it to UNTIL ALARM==VAL(ANOT$) and it should work.
    Posted