Help With register System
#1

I followed a login system tutorial but I get many errors
Here are the errors
PHP код:
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : warning 215expression has no effect
C
:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : error 001expected token";"but found "-string-"
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : warning 215expression has no effect
C
:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

and here is the code
PHP код:
public OnPlayerConnect(playerid)
{
pTazed[playerid] = 0;
pTazer[playerid] = 0;
{
if(
fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra true, .extra playerid);
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_PASSWORD,""WHITE"Registering...",""WHITE"Type your password below to register a new account.","Register","Quit");
}
return 
1;

Reply
#2

Extra bracket
pawn Код:
public OnPlayerConnect(playerid)
{
pTazed[playerid] = 0;
pTazer[playerid] = 0;
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""WHITE"Registering...",""WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
Reply
#3

try this

You got a extra bracket '{'

pawn Код:
public OnPlayerConnect(playerid)
{
    pTazed[playerid] = 0;
    pTazer[playerid] = 0;

    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid),"LoadUser_data ", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""WHITE"Login",""WHITE"Type your password below to login.","Login","Quit");
        } else {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""WHITE"Registering...",""WHITE"Type your password below to register a new account.","Register","Quit");
        return 1;
    }
    return 1;
}
Reply
#4

I tried what you guys said and It still isn't working same errors please help
Reply
#5

If nobody can help can they at least tell me how to make a system that saves teams thats the only reason Im getting rid of Lux admin
Reply
#6

If you tried the above code, then your problem most probably lies within the WHITE-define.
Reply
#7

Here is my define WHITE
PHP код:
#define WHITE 0xFFFFFFAA 
I dont understand is there a way just to make a faction save system ?
Reply
#8

If you are wondering here is the tutorial
Reply
#9

#define WHITE "{FFFFFF}"
Reply
#10

I did that it gave me even more errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)