PDA

View Full Version : Undefined Symbol


ryanhawk31
11/06/2013, 06:06 PM
I got this errors i havent had this errors before but i quited samp and after a month i tryed to compile my script then i got this errors

C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5066 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5676 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5692 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5705 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5719 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5730 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5744 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5807 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5822 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5837 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5852 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5867 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5882 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5897 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5912 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5927 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5942 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5957 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5972 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(5987 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(6017 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(6028 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(6047 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(6076 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(6088 ) : error 017: undefined symbol "NOPCheck"
C:\Users\rune\Desktop\CRRP\gamemodes\CRRP.pwn(8610 ) : error 017: undefined symbol "SaveAccountsUpdate"

the NOPCheck have this line
NOPCheck(playerid);
and the SaveAccountsUpdate have this line
SaveAccountsUpdate();

i got this for NOPCheck
Delay:NOPCheck[5000, i](playerid)
{
if(GetPlayerState(playerid) != 2) NOPTrigger[playerid] = 0;
new newcar = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pAdmin] > 1 || GetPlayerState(playerid) != 2) return 1;
else if(IsAnDOCCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11) ExecuteNOPAction(playerid);
else if(IsACopCar(newcar) && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) ExecuteNOPAction(playerid);
else if(IsAPlane(newcar) && (PlayerInfo[playerid][pFlyLic] != 1)) ExecuteNOPAction(playerid);
else if(IsAFBICar(newcar) && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2) ExecuteNOPAction(playerid);
else if(IsAnNGCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
else if(IsAnNGAIRCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
// else if(IsAnNGARMCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
return 1;
}

and i tryed to add this, nothings happened

timer NOPCheck[5000, i](playerid)
{
if(GetPlayerState(playerid) != 2) NOPTrigger[playerid] = 0;
new newcar = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pAdmin] > 1 || GetPlayerState(playerid) != 2) return 1;
else if(IsAnDOCCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11) ExecuteNOPAction(playerid);
else if(IsACopCar(newcar) && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) ExecuteNOPAction(playerid);
else if(IsAPlane(newcar) && (PlayerInfo[playerid][pFlyLic] != 1)) ExecuteNOPAction(playerid);
else if(IsAFBICar(newcar) && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2) ExecuteNOPAction(playerid);
else if(IsAnNGCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
else if(IsAnNGAIRCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
else if(IsAnSFPDCar(newcar) && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3) ExecuteNOPAction(playerid);
else if(IsAnSASDCar(newcar) && PlayerInfo[playerid][pMember] != 7 && PlayerInfo[playerid][pLeader] != 7) ExecuteNOPAction(playerid);
else if(IsAPizzaCar(newcar) && PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21) ExecuteNOPAction(playerid);
else if(IsAnAmbulance(newcar) && PlayerInfo[playerid][pMember] != 4 && PlayerInfo[playerid][pLeader] != 4) ExecuteNOPAction(playerid);
else if(IsVIPcar(newcar) && PlayerInfo[playerid][pDonateRank] == 0) ExecuteNOPAction(playerid);
else if(IsATierraARCar(newcar) && PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12) ExecuteNOPAction(playerid);
else if(IsAnNGARMCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
return 1;
}

and for the SaveAccountUpdates

Timer:SaveAccountsUpdate[300000]()
{
new playerip[32];
foreach(Player, i)
{
PlayerInfo[i][pInt] = GetPlayerInterior(i);
PlayerInfo[i][pVW] = GetPlayerVirtualWorld(i);
PlayerInfo[i][pChar] = PlayerInfo[i][pModel];
GetPlayerIp(i, playerip, sizeof(playerip));
format(PlayerInfo[i][pIP], 32, "%s", playerip);
GetPlayerPos(i, PlayerInfo[i][pPos_x], PlayerInfo[i][pPos_y], PlayerInfo[i][pPos_z]);
GetPlayerFacingAngle(i, PlayerInfo[i][pPos_r]);
OnPlayerStatsUpdate(i);
}
SaveFamilies();
SaveFamiliesHQ();
}


Hope to get some help :))

Red_Dragon.
11/06/2013, 07:02 PM
You have a missing brace.
N.B Advice, don't use NGRP scripts

XxBingxX
11/06/2013, 07:02 PM
Hmm...
What exactly are you trying to do here?
timer NOPCheck[5000, i](playerid)
{
if(GetPlayerState(playerid) != 2) NOPTrigger[playerid] = 0;
new newcar = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pAdmin] > 1 || GetPlayerState(playerid) != 2) return 1;
else if(IsAnDOCCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11) ExecuteNOPAction(playerid);
else if(IsACopCar(newcar) && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) ExecuteNOPAction(playerid);
else if(IsAPlane(newcar) && (PlayerInfo[playerid][pFlyLic] != 1)) ExecuteNOPAction(playerid);
else if(IsAFBICar(newcar) && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2) ExecuteNOPAction(playerid);
else if(IsAnNGCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
else if(IsAnNGAIRCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
else if(IsAnSFPDCar(newcar) && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3) ExecuteNOPAction(playerid);
else if(IsAnSASDCar(newcar) && PlayerInfo[playerid][pMember] != 7 && PlayerInfo[playerid][pLeader] != 7) ExecuteNOPAction(playerid);
else if(IsAPizzaCar(newcar) && PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21) ExecuteNOPAction(playerid);
else if(IsAnAmbulance(newcar) && PlayerInfo[playerid][pMember] != 4 && PlayerInfo[playerid][pLeader] != 4) ExecuteNOPAction(playerid);
else if(IsVIPcar(newcar) && PlayerInfo[playerid][pDonateRank] == 0) ExecuteNOPAction(playerid);
else if(IsATierraARCar(newcar) && PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12) ExecuteNOPAction(playerid);
else if(IsAnNGARMCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
return 1;
}

anyways, given the information, a likely solution to your problem would be this:
stock NOPCheck(playerid)
{
if(GetPlayerState(playerid) != 2) NOPTrigger[playerid] = 0;
new newcar = GetPlayerVehicleID(playerid);
if(PlayerInfo[playerid][pAdmin] > 1 || GetPlayerState(playerid) != 2) return 1;
else if(IsAnDOCCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] != 11) ExecuteNOPAction(playerid);
else if(IsACopCar(newcar) && PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pLeader] != 1) ExecuteNOPAction(playerid);
else if(IsAPlane(newcar) && (PlayerInfo[playerid][pFlyLic] != 1)) ExecuteNOPAction(playerid);
else if(IsAFBICar(newcar) && PlayerInfo[playerid][pMember] != 2 && PlayerInfo[playerid][pLeader] != 2) ExecuteNOPAction(playerid);
else if(IsAnNGCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
else if(IsAnNGAIRCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
else if(IsAnSFPDCar(newcar) && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 3) ExecuteNOPAction(playerid);
else if(IsAnSASDCar(newcar) && PlayerInfo[playerid][pMember] != 7 && PlayerInfo[playerid][pLeader] != 7) ExecuteNOPAction(playerid);
else if(IsAPizzaCar(newcar) && PlayerInfo[playerid][pJob] != 21 && PlayerInfo[playerid][pJob2] != 21) ExecuteNOPAction(playerid);
else if(IsAnAmbulance(newcar) && PlayerInfo[playerid][pMember] != 4 && PlayerInfo[playerid][pLeader] != 4) ExecuteNOPAction(playerid);
else if(IsVIPcar(newcar) && PlayerInfo[playerid][pDonateRank] == 0) ExecuteNOPAction(playerid);
else if(IsATierraARCar(newcar) && PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 12) ExecuteNOPAction(playerid);
else if(IsAnNGARMCar(newcar) && PlayerInfo[playerid][pMember] != 11 && PlayerInfo[playerid][pLeader] !=11) ExecuteNOPAction(playerid);
return 1;
}