4 errors
#1

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

Somewhere (maybe in line 58 or in the UserPath-function) you forgot a quotation mark (") to close the string.
Reply
#3

stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}
Reply
#4

i dont see problem, let me know if u do...
Reply
#5

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

instead of using "COLOR_WHITE" try using "white" and make sure u have added this in the top of the script below includes

Quote:

#define white "{FFFFFF}"

it works for me
Reply
#7

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

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

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?
Reply
#10

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"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)