OnPlayerLogin problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerLogin problem (
/showthread.php?tid=423292)
OnPlayerLogin problem -
Vegas. - 17.03.2013
Код:
#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..
Respuesta: OnPlayerLogin problem -
Parka - 17.03.2013
pawn Код:
OnPlayerLogin(playerid, strval(tmppass));
Re: OnPlayerLogin problem -
Vegas. - 17.03.2013
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
Re: OnPlayerLogin problem -
newbienoob - 17.03.2013
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 ^^