OnPlayerLogin problem
#1

Код:
#define FUNCTION:%0(%1) \
		forward%0(%1); \
		public%0(%1)
Код:
FUNCTION: OnPlayerLogin(playerid,password[])
I got this error.
Код:
error 025: function heading differs from prototype
I don't know why, I haven't faced this problem before. And here -
Код:
OnPlayerLogin(playerid,tmppass);
Код:
error 035: argument type mismatch (argument 2)
I also tried with forward and public..
Reply
#2

pawn Код:
OnPlayerLogin(playerid, strval(tmppass));
Reply
#3

It worked before, writted like I posted, but yesterday it started causing problems.. And tmppass was done with strmid, that is OK. Some scripters told me that I have a wrong compiler? lol
Reply
#4

Dunno bout this...
pawn Код:
#define FUNCTION:%0(%1) \
        forward%0(%1); \
        public%0(%1)

//OnPlayerLogin has 2 parameters(?). playerid and password[]. So I guess it should be like;
#define FUNCTION:%0(%1, %2) \
        forward%0(%1, %2); \
        public%0(%1, %2)
Give it a try ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)