Erros on login/reg system help! -
Rajko123 - 10.01.2016
Yea i want to add Register and Login system i have 13 errors so i fix something and now 6 errors
Errors:
Код:
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(701) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(701) : error 004: function "MP_OPCTD" is not implemented
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(703) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(703) : warning 215: expression has no effect
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(703) : error 001: expected token: ";", but found ")"
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(703) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(703) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Line 701
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
Line 703
Код:
if(clickedid == TDLogin)
Can anyone help? btw clickedid is defined first i got error undefindet symbol i #define it now...(bad english)
Re: Erros on login/reg system help! -
GTLS - 10.01.2016
May be your includes are not updated one, try downloading latest Includes from ******************.. then and also show us the whole code of this TDLogin.
Re: Erros on login/reg system help! -
adithegman - 10.01.2016
Show the whole code
Re: Erros on login/reg system help! -
Rajko123 - 10.01.2016
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TDLogin)
{
if(!fexist(UserPath(playerid))))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FFFFFF}Login","{FFFFFF}Type Your Password Below To Login.","Login","Quit");
}
else if(!fexist(UserPath(playerid)))
{
SendClientMessage(playerid,0xD2691EAA,"This Name Has Not Been Registered. Select Register.");
}
}
if(clickedid == TDReg)
{
if(!fexist(UserPath(playerid)))
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Register","{FFFFFF}Type Your Password Below To Register a New Account.","Register","Quit");
}
else if(fexist(UserPath(playerid)))
{
SendClientMessage(playerid,0xD2691EAA,"This Name Has Been Registered. Select Login.");
}
}
return 1;
}
Problems:
This line:
Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
Errors:
Код:
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1065) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1065) : error 004: function "MP_OPCTD" is not implemented
This Line:
Код:
if(clickedid == TDLogin)
Errors:
Код:
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1067) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1067) : warning 215: expression has no effect
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1067) : error 001: expected token: ";", but found ")"
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1067) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1067) : fatal error 107: too many error messages on one line
Re: Erros on login/reg system help! -
GTLS - 10.01.2016
Was that Error occurring from Beginning or it came when you added something?
Re: Erros on login/reg system help! -
Rajko123 - 10.01.2016
beginning
Re: Erros on login/reg system help! -
Rajko123 - 10.01.2016
i add on top of the script
Код:
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define clickedid
#define Streamer_OnPlayerPickUpPickup
#define Streamer_OnPlayerEnterCP
Because they were undefindet symbol,and they fixed but now only this 6 errors i have
Re: Erros on login/reg system help! -
GTLS - 10.01.2016
hmm.. why did you defined clickedid mate i dont think there is any need of that..
Re: Erros on login/reg system help! -
Rajko123 - 10.01.2016
undefindet symbol.....
Re: Erros on login/reg system help! -
Rajko123 - 10.01.2016
If a delete #define clickedid
Errors:
Код:
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1502) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1502) : error 004: function "MP_OPCTD" is not implemented
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1504) : error 017: undefined symbol "clickedid"
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1506) : error 017: undefined symbol "UserPath"
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1506) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1508) : error 017: undefined symbol "INI_ParseFile"
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1508) : warning 215: expression has no effect
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1508) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1508) : error 017: undefined symbol "extra"
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1508) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Errors.
If i put #define clickedid
This errors:
Код:
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1503) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1503) : error 004: function "MP_OPCTD" is not implemented
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1505) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1505) : warning 215: expression has no effect
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1505) : error 001: expected token: ";", but found ")"
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1505) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters RP\gamemodes\pinkrp.pwn(1505) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.