Undefined Symbol
#1

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

pawn Код:
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
pawn Код:
NOPCheck(playerid);
and the SaveAccountsUpdate have this line
pawn Код:
SaveAccountsUpdate();
i got this for NOPCheck
pawn Код:
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

pawn Код:
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

pawn Код:
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 )
Reply
#2

You have a missing brace.
N.B Advice, don't use NGRP scripts
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)