26.02.2012, 09:31
I have my own gamemode and I have wanted to make login/register system but I get 4 errors on one line
these are the errors:
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130
: error 029: invalid expression, assumed zero
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130
: warning 215: expression has no effect
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130
: error 001: expected token: ";", but found "]"
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130
: error 029: invalid expression, assumed zero
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130
: fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
and this is the line
public OnPlayerConnect(playerid)
{
gPlayerLogged[playerid] = 0;
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Niste registrirani", "[BSL]Dobrodosli, niste registrirani. Molim registrirajte se za daljnju igru", "Registriraj", "Izadji");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Vi ste registrirani", "[BSL]Dobrodosli, vi ste registrirani. Logirajte se", "Login", "Izadji");
}
return 1;
}
these are the errors:
C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130

C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130

C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130

C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130

C:\Users\Rogulj\Desktop\Stunt Server\gamemodes\StuntServer.pwn(130

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
and this is the line
public OnPlayerConnect(playerid)
{
gPlayerLogged[playerid] = 0;
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if (!dini_Exists(file))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Niste registrirani", "[BSL]Dobrodosli, niste registrirani. Molim registrirajte se za daljnju igru", "Registriraj", "Izadji");
}
if(fexist(file))
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Vi ste registrirani", "[BSL]Dobrodosli, vi ste registrirani. Logirajte se", "Login", "Izadji");
}
return 1;
}