5 error's please help!
#1

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, WHITE, "Welcome to Real Europian RolePlay");
SendClientMessageToAll(WHITE, "A player joined the server!");
Login[playerid] = 0;
new nombre[MAX_PLAYER_NAME], archivo[256];
GetPlayerName(playerid, nombre, sizeof(nombre));
format(archivo, sizeof(archivo), "/Users/%s.ini", nombre);
if (!dini_Exists(archivo))
{
ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "Please enter a password:", "Okay", "Back");
}
else
{
ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Enter your password", "Login", "Back");
}
return 1;
}

{
PosX[ playerid ] = 0;
PosY[ playerid ] = 0;
PosZ[ playerid ] = 0;
Angle[ playerid ] = 0;
Interior[ playerid ] = 0;
VirtualWorld[ playerid ] = 0;

INI_ParseFile(user_ini_file(playerid), "load_user_%s", .bExtra = true, .extra = playerid);
return 1;
}

Errors :

\RERP.pwn(10 : error 055: start of function body without function header
\RERP.pwn(116) : error 025: function heading differs from prototype
\RERP.pwn(116) : error 021: symbol already defined: "INI_ParseFile"
\RERP.pwn(116) : error 010: invalid function or declaration
\RERP.pwn(116) : fatal error 107: too many error messages on one line
Reply
#2

the smily ( 8 ) in the firsth error is a Eight , somehow its a smily :\!
Reply
#3

Could you post the code in [pawn][/pawn] tags to make the code more human-readable. Could you also show which lines are which. That will enable us to help you better.
Reply
#4

pawn Код:
public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid, WHITE, "Welcome to Real Europian RolePlay");
   SendClientMessageToAll(WHITE, "A player joined the server!");
   Login[playerid] = 0;
   new nombre[MAX_PLAYER_NAME], archivo[256];
   GetPlayerName(playerid, nombre, sizeof(nombre));
   format(archivo, sizeof(archivo), "/Users/%s.ini", nombre);
   if (!dini_Exists(archivo))
   {
       ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Register", "Please enter a password:", "Okay", "Back");
   }
   else
   {
      ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Enter your password", "Login", "Back");
   }
   PosX[ playerid ] = 0;
   PosY[ playerid ] = 0;
   PosZ[ playerid ] = 0;
   Angle[ playerid ] = 0;
   Interior[ playerid ] = 0;
   VirtualWorld[ playerid ] = 0;
   INI_ParseFile(user_ini_file(playerid), "load_user_%s", .bExtra = true, .extra = playerid);
return 1;
}
Replace the whole code with what I gave you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)