Login And Register Help
#1

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;
}
Reply
#2

pawn Код:
#define DIALOG_LOGIN 2
pawn Код:
#define COL_WHITE "{FFFFFF}"
Reply
#3

thats what I have
Reply
#4

this is the tutorial https://sampforum.blast.hk/showthread.php?tid=273088
Reply
#5

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...
Reply
#6

Its not working, I think its that its not defineing the stuff, everything was working til onplayerconnect.>.<
Reply
#7

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!!!
Reply
#8

Instead of doing COLOR_RED, Just do the code beside it : 0xAA3333AA

So Do this :

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xAA3333AA, "Hello!");
return 1;
}
Reply
#9

Compiles fine for me
Код:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Mind, PM/pasting full code.(Inclueds and OnPlayerConnect)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)