[ERROR]Requesting help with error 001: expected token: "-string end-", but found "-identifier-"
#1

Hi,
I compiled my gamemode, I get this error:


Error list:
Code:
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : warning 215: expression has no effect
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 001: expected token: ";", but found ")"
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\samp03e_svr_R2_win32\gamemodes\TDM.pwn(55) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
PHP Code:
public OnPlayerConnect(playerid)
{
    new 
str[128], string[256];
    if(
fexist(Path(playerid)))//Line 55
    
{
        
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra true, .extra playerid);
        
format(stringsizeof(string), "Welcome back {1580EA}%s. {D4D4D4}This account is registered. \nInsert your password to login to your account"Name(playerid));
        
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login",string,"Login","Quit");
    }
    else
    {
        
format(stringsizeof(string), "Welcome! {1580EA}%s. {D4D4D4}This account is not registered.\nEnter your own password to create a new account."Name(playerid));
        
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register",string,"Register","Quit");
        return 
1;
    }
    
format(strsizeof(str), "{44BBBB}[Server]: {00FFFF}%s {FFFFFF}has joined in the server. Welcome him to {4DA8B3}FlyBy {1515EA}Cops {FFFFFF}and {FF0000}Robbers"Name(playerid));
    
SendClientMessageToAll(-1str);
    return 
1;

Thanks in advance.
Reply
#2

Show your Path function.
Reply
#3

Please show us your Path() function.
Reply
#4

PHP Code:
stock Path(playerid)
{
    new 
str[128],name[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,name,sizeof(name));
    
format(str,sizeof(str),UserPath,name);
    return 
str;

Reply
#5

Can you show the "UserPath" define?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)