02.08.2011, 16:20
I am making an admin system but i got errors.Please help with this:
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : error 017: undefined symbol "PInfo"
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : warning 215: expression has no effect
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : error 001: expected token: ";", but found "]"
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : error 029: invalid expression, assumed zero
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : fatal error 107: too many error messages on one line
the line is
public OnPlayerConnect(playerid)
{
PInfo[playerid][Logged] = 0;
PInfo[playerid][Regged] = 0;.
PInfo[playerid][Level] = 0;
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"MyAdmin/Users/%s.txt",name);
if(dini_Exists(file))
{
SendClientMessage(playerid,LIGHTBLUE,"You are registered, Please /login!");
PInfo[playerid][Regged] = 1;
PInfo[playerid][Logged] = 0;
return 1;
}
if(!dini_Exists(file))
{
SendClientMessage(playerid,LIGHTBLUE,"You are not registered, Please /register!");
PInfo[playerid][Regged] = 0;
PInfo[playerid][Logged] = 0;
return 1;
}
return 1;
return 1;
}
}
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : error 017: undefined symbol "PInfo"
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : warning 215: expression has no effect
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : error 001: expected token: ";", but found "]"
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : error 029: invalid expression, assumed zero
C:\Users\PART\Desktop\samp03csvr_R2-2_win32\filterscripts\ad_killerking.pwn(95) : fatal error 107: too many error messages on one line
the line is
public OnPlayerConnect(playerid)
{
PInfo[playerid][Logged] = 0;
PInfo[playerid][Regged] = 0;.
PInfo[playerid][Level] = 0;
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"MyAdmin/Users/%s.txt",name);
if(dini_Exists(file))
{
SendClientMessage(playerid,LIGHTBLUE,"You are registered, Please /login!");
PInfo[playerid][Regged] = 1;
PInfo[playerid][Logged] = 0;
return 1;
}
if(!dini_Exists(file))
{
SendClientMessage(playerid,LIGHTBLUE,"You are not registered, Please /register!");
PInfo[playerid][Regged] = 0;
PInfo[playerid][Logged] = 0;
return 1;
}
return 1;
return 1;
}
}