Compiling Error
#1

(1337) : error 029: invalid expression, assumed zero
(1337) : error 017: undefined symbol "SCM"
(1337) : error 076: syntax error in the expression, or invalid function call
(1337) : fatal error 107: too many error messages on one line
(15)error 010: invalid function or declaration

Lines 1335 - 1342 :
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_YES))
{
ClearAnimations(playerid);
}
return 1;
}


Line 15 : (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))


Defines & Includes :
Quote:

#include <a_samp>
#include <sscanf2>
#include <YSI\y_ini>
#include <mSelection>
#include <CMD>
#include <foreach>
#undef MAX_PLAYERS
#define MAX_PLAYERS 100
#define PRESSED(%0) \
#define SCM SendClientMessage
new skinlist = mS_INVALID_LISTID;
new vehlist = mS_INVALID_LISTID;
new Text:Time, Textate;
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define COLOR_BLUE 0xFFFFFFF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xFF0000AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_DARKBLUE 0x0000BBAA
#define DIALOGID 3
#define COLORS 14
#define RADIO 15
#define DIALOG_RULES 22
#define DIALOG_NEWS 33
#define DIALOG_TEAM 44
#define DIALOG_VIP 55
#define PREV_BG_COLOR2 0xFFFF00AA
#define DIALOG_BG_COLOR 0x4A5A6BBB
#define PREV_BG_COLOR 0x88888899

Reply
#2

The error is in the define "#define PRESSED"
Delete the define "#define PRESSED (% 0) \" and add this "

Код:
#define PRESSED (% 0) (((newkeys & (% 0)) == (% 0)) && ((oldkeys & (% 0))! = (% 0)))
And delete the below this
Код:
"(((newkeys & (% 0)) == (% 0)) && ((oldkeys & (% 0))! = (% 0)))"
Reply
#3

Fixed that, thanks. Although this error still exists.
Lines 1335 - 1342 :
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_YES))
{
ClearAnimations(playerid);
}
return 1;
}
Reply
#4

These are the errors I get now

(1337) : error 029: invalid expression, assumed zero
(1337) : error 029: invalid expression, assumed zero
(1337) : error 029: invalid expression, assumed zero
(1337) : fatal error 107: too many error messages on one line
Reply
#5

Put this on upper side or under the all defines or include.
#define SCM SendClientMessage
Reply
#6

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
Put this on upper side or under the all defines or include.
#define SCM SendClientMessage
Done that and I still have the errors
Reply
#7

if(PRESSED(newkeys & KEY_YES)

Replace your if(PRESSED(KEY_YES)) and place this

if(PRESSED(newkeys & KEY_YES)
Reply
#8

Delete that line and note if the error persists, maybe you have the same thing defined elsewhere, there I do not see the error.
Reply
#9

error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_YES))
{
ClearAnimations(playerid);
}
return 1;
}

I get this error now
Reply
#10

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
if(PRESSED(newkeys & KEY_YES)

Replace your if(PRESSED(KEY_YES)) and place this

if(PRESSED(newkeys & KEY_YES)
Quote:
Originally Posted by aoky
Посмотреть сообщение
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_YES))
{
ClearAnimations(playerid);
}
return 1;
}

I get this error now
Read what I said.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)