Help me fix this for it to load IsACop
#1

hi, i did this isacop when i made the FS section but it does not load, you know fix for me.

Code error:
Quote:

C:\Users\Administrator\Desktop\PE-RP\filterscripts\siren.pwn(93) : error 017: undefined symbol "IsACop"

code :
Quote:

if (IsACop(playerid)
{
return SendClientMessage(playerid, -1, "Ban khong phai la canh sat");
}

Reply
#2

You haven't defined IsACop, do you have a faction system on your gamemode? If yes, tell me. I'll explain to you how do you create IsACop.
Reply
#3

First of all, close your first bracket,
PHP код:
if (IsACop(playerid)) //<missing this last bracket close
{
return 
SendClientMessage(playerid, -1"Ban khong phai la canh sat");

Second, you might not defined IsACop function,
Like this,
PHP код:
IsACop(playerid){
    if(
sInfo[playerid][faction]==Police// sInfo[playerid][faction]==Police is my variable, replace it with yours
    
{
        return 
1;
    }
    return 
0;

Reply
#4

Quote:
Originally Posted by akib
if(sInfo[playerid][faction]==Police)
Why not explain it better? What if he has a totally different faction system than yours?
Although if you're looking for reputations tell me I'll rep you for free, just try to explain it to them and not post random code
Reply
#5

thanks very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)