Help With register System -
lramos15 - 02.03.2013
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 001: expected token: "-string end-", but found "-identifier-"
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : warning 215: expression has no effect
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : error 001: expected token: ";", but found "-string-"
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : warning 215: expression has no effect
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\logan_000\Desktop\Samp server\gamemodes\lramos15.pwn(201) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB 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(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;
}
Re: Help With register System -
DaRk_RaiN - 02.03.2013
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;
}
Re: Help With register System - Patrick - 02.03.2013
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;
}
Re: Help With register System -
lramos15 - 02.03.2013
I tried what you guys said and It still isn't working same errors please help
Re: Help With register System -
lramos15 - 03.03.2013
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
Re: Help With register System -
LarzI - 03.03.2013
If you tried the above code, then your problem most probably lies within the WHITE-define.
Re: Help With register System -
lramos15 - 03.03.2013
Here is my define WHITE
PHP код:
#define WHITE 0xFFFFFFAA
I dont understand is there a way just to make a faction save system ?
Re: Help With register System -
lramos15 - 03.03.2013
If you are wondering here is the tutorial
Re: Help With register System -
newbienoob - 03.03.2013
#define WHITE "{FFFFFF}"
Re: Help With register System -
lramos15 - 03.03.2013
I did that it gave me even more errors.