02.01.2013, 07:56
I compiled after I made the /register and /login commands, but I got this:
Here are my lines at the OnPlayerDisconnect:
What went wrong? I know it's outdated and stuff, but its the first language I actually understand.
pawn Code:
C:\Users\Gast\Desktop\SA-MP Server\gamemodes\TestCode.pwn(99) : warning 217: loose indentation
C:\Users\Gast\Desktop\SA-MP Server\gamemodes\TestCode.pwn(99) : error 029: invalid expression, assumed zero
C:\Users\Gast\Desktop\SA-MP Server\gamemodes\TestCode.pwn(99) : error 017: undefined symbol "reason"
C:\Users\Gast\Desktop\SA-MP Server\gamemodes\TestCode.pwn(99 -- 101) : error 029: invalid expression, assumed zero
C:\Users\Gast\Desktop\SA-MP Server\gamemodes\TestCode.pwn(99 -- 101) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
new n[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid,n,sizeof(n));
format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
PInfo[playerid][Logged] = 0;
if(dini_Exists(file))
{
dini_IntSet(file,"Logged",0);
return 1;
}

