thedark wrote:whe almost need a keyboard tab in dsgm :-)
I keep getting a compile error
TYPE 5
DISPLAY Keyboard Text 2
ICON Draw keyboard text.png
CONDITION 0
ARG String,3
ARG Placeholder,3
ARG Screen (0-1),0
ARG X (0-31),0
ARG Y (0-19),0
ARG Text Variable,3
!1![!2!] = PA_CheckKeyboard();
if (PA_CheckKeyboard() > 31) {
++!2!;
}
if (PA_CheckKeyboard() == PA_BACKSPACE) {
if (!2! > 0) {
--!2!;
}
}
PA_OutputText( !3!, !4!, !5!, "%s", !6!);
Nobody wrote:Again a compile error, this time using Foxi4's code:
C:\DSGMTempKeyboardTest57212802>make
Build process start for project "DSGMTempKeyboardTest57212802"...
.
main.c
In file included from c:/DSGMTempKeyboardTest57212802/source/main.c:6:0:
c:/DSGMTempKeyboardTest57212802/include/GameWorks.h: In function 'Object_1Step_E
vent':
c:/DSGMTempKeyboardTest57212802/include/GameWorks.h:41:5: error: lvalue required
as left operand of assignment
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
C:\DSGMTempKeyboardTest57212802>pause
Press any key to continue . . .
PA_CheckKeyboard() = PA_BACKSPACE
JanMulder wrote:Nobody wrote:Again a compile error, this time using Foxi4's code:
C:\DSGMTempKeyboardTest57212802>make
Build process start for project "DSGMTempKeyboardTest57212802"...
.
main.c
In file included from c:/DSGMTempKeyboardTest57212802/source/main.c:6:0:
c:/DSGMTempKeyboardTest57212802/include/GameWorks.h: In function 'Object_1Step_E
vent':
c:/DSGMTempKeyboardTest57212802/include/GameWorks.h:41:5: error: lvalue required
as left operand of assignment
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
C:\DSGMTempKeyboardTest57212802>pause
Press any key to continue . . .
That's because Foxi did this:PA_CheckKeyboard() = PA_BACKSPACE
instead of:
PA_CheckKeyboard() == PA_BACKSPACE
!1![!2!] == PA_CheckKeyboard(); // watch out for the == and the ++ thanks to jan
Users browsing this forum: Google [Bot] and 1 guest