Login And Register Help -
mwoww77 - 08.08.2012
Hey guys,
I did this tutorial and did it completely how it said to do it but everytime i complie I get these
Код:
C:\Users\Michael C\Desktop\Mohave County\gamemodes\MohaveRP.pwn(103) : error 017: undefined symbol "DIALOG_LOGIN"
C:\Users\Michael C\Desktop\Mohave County\gamemodes\MohaveRP.pwn(103) : error 017: undefined symbol "COL_WHITE"
C:\Users\Michael C\Desktop\Mohave County\gamemodes\MohaveRP.pwn(103) : warning 215: expression has no effect
C:\Users\Michael C\Desktop\Mohave County\gamemodes\MohaveRP.pwn(103) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Michael C\Desktop\Mohave County\gamemodes\MohaveRP.pwn(103) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
here is the place where line 103 is.
pawn Код:
public OnPlayerConnect(playerid)
{
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
Respuesta: Login And Register Help -
HydraX - 08.08.2012
pawn Код:
#define COL_WHITE "{FFFFFF}"
Re: Login And Register Help -
mwoww77 - 08.08.2012
thats what I have
Re: Login And Register Help -
mwoww77 - 08.08.2012
this is the tutorial
https://sampforum.blast.hk/showthread.php?tid=273088
Re: Login And Register Help -
RowdyrideR - 08.08.2012
Replace this:
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
With this:
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit");
I guess...
Re: Login And Register Help -
mwoww77 - 08.08.2012
Its not working, I think its that its not defineing the stuff, everything was working til onplayerconnect.>.<
Re: Login And Register Help -
mwoww77 - 08.08.2012
its not defineing right, I tried a test using
pawn Код:
#define COLOR_RED 0xAA3333AA
then after that i did
pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_RED, "Hello!");
return 1;
}
and I got this
Код:
C:\Users\Michael C\Desktop\Mohave County\gamemodes\test.pwn(58) : error 017: undefined symbol "COLOR_RED"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
somebody please help!!!
Re: Login And Register Help -
ShawtyyMacJunior - 08.08.2012
Instead of doing COLOR_RED, Just do the code beside it : 0xAA3333AA
So Do this :
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xAA3333AA, "Hello!");
return 1;
}
Re: Login And Register Help -
[MM]RoXoR[FS] - 08.08.2012
Compiles fine for me
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Mind, PM/pasting full code.(Inclueds and OnPlayerConnect)