09.04.2012, 12:16
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
{
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

\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