Undefined Symbol.
#1

Hey, I'm Working on a zGaming edit, adding more 3 Factions, so when i did, i need the commands, when i try to make it, It needs [IsACop] or [IsAGov] Or [IsAReporter] So when i tried to [IsANG] Its giving me 2 errors

error 017: undefined symbol

And i cant find the defines!!

Any Help Please.
Reply
#2

Because you should be searching for stocks, not defines. I'm off to bed here in a few, so I can't provide the best of an explanation, but you can shoot me a PM and I'll get back to you in the morning.

I took the joy of having a quick snoop through the script you're editing, and wildly enough found these:
pawn Код:
stock IsAReporter(playerid)
{
    if(PlayerInfo[playerid][pFac] == 4) return 1;
    return 0;
}

stock IsACop(playerid)
{
    if(PlayerInfo[playerid][pFac] == 1) return 1;
    return 0;
}

stock IsAGov(playerid)
{
    if(PlayerInfo[playerid][pFac] == 2) return 1;
    return 0;
}

stock IsAHitman(playerid)
{
    if(PlayerInfo[playerid][pFac] == 3) return 1;
    return 0;
}
To cut to the chase, you should replicate these and adjust the ID to fit your needs. For example:
(it is safe to use these, simply edit the names to your new faction names and place this anywhere in your script)
pawn Код:
stock IsANG(playerid)
{
    if(PlayerInfo[playerid][pFac] == 5) return 1;
    return 0;
}

stock IsAFireFighter(playerid)
{
    if(PlayerInfo[playerid][pFac] == 6) return 1;
    return 0;
}

stock IsAMercenary(playerid)
{
    if(PlayerInfo[playerid][pFac] == 7) return 1;
    return 0;
}
Reply
#3

I was having the same problem...
Reply
#4

Quote:
Originally Posted by razor steven
Посмотреть сообщение
You have to define them.

Код:
#Define IsANG
Please take in a little regard and actually read a person's problem before giving them misleading information.
Reply
#5

Thanks zDevon, Its working, And For razor, i tried, but the command wont work.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)