TDM.pwn(490) : error 001: expected token: "-string end-", but found "-identifier-" TDM.pwn(490) : warning 215: expression has no effect TDM.pwn(490) : error 001: expected token: ";", but found ")" TDM.pwn(490) : error 029: invalid expression, assumed zero TDM.pwn(490) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
pInfo[playerid][AdminLevel] = 0;
pInfo[playerid][LoggedIn] = false;
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadPlayerData", .bExtra = true, .extra = playerid)
format(string, sizeof(string),""COL_LIGHTBLUE"Welcome back to LSGW, "COL_BLUE"%s!\n\n"COL_LIGHTBLUE"To be able to spawn, play, and takes the advantage of the features that we offer, you need to login to this account.\n\n"COL_RED"Insert your password in the field below.\nIf this is not your account, please make one!", GetPlayersName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Account Login", string, "Login", "Quit");
}
else
{
format(string, sizeof(string),""COL_LIGHTBLUE"Welcome to LSGW, "COL_BLUE"%s!\n\n"COL_LIGHTBLUE"To be able to spawn, play, and takes the advantage of the features that we offer, you need to register an account.\n\n"COL_RED"Insert your password in the field below.\nDon't ever give it to other people, even our administrators!",GetPlayersName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Account Register", string, "Register", "Quit");
}
if(fexist(UserPath(playerid)))
#define UserPath "/Users/%s.ini"
Jake Elite@ UserPath did exist in my script.
pawn Код:
|
//Your code:
pInfo[playerid][AdminLevel] = 0;
pInfo[playerid][LoggedIn] = false;
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadPlayerData", .bExtra = true, .extra = playerid);
format(string, sizeof(string),""COL_LIGHTBLUE"Welcome back to LSGW, "COL_BLUE"%s!\n\n"COL_LIGHTBLUE"To be able to spawn, play, and takes the advantage of the features that we offer, you need to login to this account.\n\n"COL_RED"Insert your password in the field below.\nIf this is not your account, please make one!", GetPlayersName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Account Login", string, "Login", "Quit");
}
else
{
format(string, sizeof(string),""COL_LIGHTBLUE"Welcome to LSGW, "COL_BLUE"%s!\n\n"COL_LIGHTBLUE"To be able to spawn, play, and takes the advantage of the features that we offer, you need to register an account.\n\n"COL_RED"Insert your password in the field below.\nDon't ever give it to other people, even our administrators!",GetPlayersName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Account Register", string, "Register", "Quit");
}
//your define:
#define PATH "/Users/%s.ini"
//the stock to use UserPath:
stock UserPath(playerid)
{
new string[35],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}
stock PlayerPath(playerid)
{
new pName[24], string[128];
GetPlayerName(playerid, pName, 24);
format(string, sizeof(string), UserPath, pName);
return string;
}
if(fexist(PlayerPath(playerid)))
#define COL_BLUE "{HEXCODEWITHOUT0x}"