Pawno Errors
#1

I try to make a one Faction in PCRP and this showed me

pawn Код:
C:\Users\2com\Desktop\BG RC RP\gamemodes\PCRP.pwn(6180) : error 017: undefined symbol "IsASoldier"
C:\Users\2com\Desktop\BG RC RP\gamemodes\PCRP.pwn(6668) : error 017: undefined symbol "IsASoldier"
C:\Users\2com\Desktop\BG RC RP\gamemodes\PCRP.pwn(6669) : error 017: undefined symbol "IsASoldier"
C:\Users\2com\Desktop\BG RC RP\gamemodes\PCRP.pwn(6671) : error 017: undefined symbol "IsASoldier"
C:\Users\2com\Desktop\BG RC RP\gamemodes\PCRP.pwn(9564) : error 017: undefined symbol "IsASoldier"
C:\Users\2com\Desktop\BG RC RP\gamemodes\PCRP.pwn(18468) : error 017: undefined symbol "IsSoldierVehicle"
pawn Код:
//PCSF
    if(IsASoldier(playerid)) SendClientMessage(playerid, COLOR_YELLOW, "PCSF: {FFFFFF}/fs /r /d /m /tazer /cuff /uncuff /detain /track /door /gate /locker /showbadge /frisk /createspike /removespike /removespikes");
    if(IsASoldier(playerid)) SendClientMessage(playerid, COLOR_YELLOW, "PCSF: {FFFFFF}/checkload /siren /ticket /wanted /mdc /su /arrest /members /quitfaction /drag /stopdrag");
    if(PlayerInfo[playerid][pFacDivLeader]) SendClientMessage(playerid, COLOR_YELLOW, "PCSF DIVISION LEADER: {FFFFFF}/dinvite /duninvite");
    if(IsASoldier(playerid) && PlayerInfo[playerid][pFacLeader]) SendClientMessage(playerid, COLOR_YELLOW, "PCSF FACTION LEADER: {FFFFFF}/gov /invite /uninvite /setrank /adjustrankname");
    // SAPD
    if(IsACop(playerid)) SendClientMessage(playerid, COLOR_YELLOW, "PCPD: {FFFFFF}/fc /r /d /m /tazer /cuff /uncuff /detain /track /door /gate /locker /showbadge /frisk /createspike /removespike /removespikes");
    if(IsACop(playerid)) SendClientMessage(playerid, COLOR_YELLOW, "PCPD: {FFFFFF}/checkload /siren /ticket /wanted /mdc /drag /su /arrest /members /quitfaction");
    if(PlayerInfo[playerid][pFacDivLeader]) SendClientMessage(playerid, COLOR_YELLOW, "PCPD DIVISION LEADER: {FFFFFF}/dinvite /duninvite");
    if(IsACop(playerid) && PlayerInfo[playerid][pFacLeader]) SendClientMessage(playerid, COLOR_YELLOW, "PCPD FACTION LEADER: {FFFFFF}/gov /invite /uninvite /setrank /adjustrankname /setdivision /adjustdivisionname");
    // Government
    if(IsAGov(playerid)) SendClientMessage(playerid, COLOR_YELLOW, "GOV: {FFFFFF}/fg /r /d /showbadge");
    if(IsAGov(playerid) && PlayerInfo[playerid][pFacLeader]) SendClientMessage(playerid, COLOR_YELLOW, "GOV FACTION LEADER: {FFFFFF}/settax /taxvault /taxwithdraw /gov /invite /uninvite /setrank /adjustrankname");
Reply
#2

You havent created the stock for your faction
Код:
stock IsASoldier(playerid)
{
   if(PlayerInfo[playerid][pFac] == facidofthefac) return 1;
   return 0;
}
Reply
#3

yes thanks i fix it )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)