4 errors -
Mike100 - 08.02.2015
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : warning 215: expression has no effect
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : error 001: expected token: ";", but found ")"
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : error 029: invalid expression, assumed zero
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(fexist(UserPath(playerid))) ////////// LINE 59
{
INI_ParseFile(UserPath(playerid)), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WH ITE"Type your PASSWORD to login!", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Register",""COLOR _WHITE"Register,type your PASSWORD!", "Login", "Quit");
return 1;
}
Re: 4 errors -
Schneider - 08.02.2015
Somewhere (maybe in line 58 or in the UserPath-function) you forgot a quotation mark (") to close the string.
Re: 4 errors -
Mike100 - 09.02.2015
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}
Re: 4 errors -
Mike100 - 09.02.2015
i dont see problem, let me know if u do...
Re: 4 errors -
Makhmoor - 09.02.2015
if(fexist(UserPath(playerid))) ////////// LINE 59
{
INI_ParseFile(UserPath(playerid)), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_WHITE"Login",""COLOR_WH ITE"Type your PASSWORD to login!", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_WHITE"Register",""COLOR _WHITE"Register","type your PASSWORD!", "Login", "Quit");
return 1;
}
try this ^
Re: 4 errors -
Rissam - 09.02.2015
instead of using "COLOR_WHITE" try using "white" and make sure u have added this in the top of the script below includes
it works for me
Re: 4 errors -
Mike100 - 09.02.2015
I will set lines again,not working////pawn C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : warning 215: expression has no effect
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : error 001: expected token: ";", but found ")"
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : error 029: invalid expression, assumed zero
C:\Users\w7\Desktop\Kucni\gamemodes\CeBegamo.pwn(5 9) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
/pawn public OnPlayerConnect(playerid) // line 55
{
TextDrawShowForPlayer(playerid, TD1);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid)), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""white"Login",""white"Type your PASSWORD to login!", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""white"Register",""white"Regis ter","type your PASSWORD!", "Login", "Quit");
return 1;
}
Edit:
Iam new, how to put lines in /pawn codes
Re: 4 errors -
DanishHaq - 09.02.2015
pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TD1);
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{FFFFFF}Login", "{FFFFFF}Type your PASSWORD to login!", "Login", "Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FFFFFF}Register", "{FFFFFF}Type your PASSWORD to register!", "Register", "Quit");
}
return 1;
}
Try that. Re-writ your code a little.
Note: You had a few errors in here too, I didn't see your UserPath, check the post below for that.
Re: 4 errors -
Sascha - 09.02.2015
write a "[" and a "p" "a" "w" "n" "]"
and to end just "[" "/" "p" "a" "w" "n" "]"
(without the quotations)
pawn Код:
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}
what is "PATH" how is it defined?
Re: 4 errors -
Mike100 - 09.02.2015
Quote:
Originally Posted by Sascha
write a "[" and a "p" "a" "w" "n" "]"
and to end just "[" "/" "p" "a" "w" "n" "]"
(without the quotations)
pawn Код:
stock UserPath(playerid) { new string[128],playername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playernam e)); format(string,sizeof(string),PATH,playername); return string; }
what is "PATH" how is it defined?
|
#define UserPath "/Nalozi/%s.ini"