Undefined Symbol. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Undefined Symbol. (
/showthread.php?tid=381060)
Undefined Symbol. -
iHaze. - 28.09.2012
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.
Re: Undefined Symbol. -
zDevon - 28.09.2012
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;
}
Re: Undefined Symbol. -
razor steven - 28.09.2012
I was having the same problem...
Re: Undefined Symbol. -
zDevon - 28.09.2012
Quote:
Originally Posted by razor steven
|
Please take in a little regard and actually
read a person's problem before giving them misleading information.
Re: Undefined Symbol. -
iHaze. - 28.09.2012
Thanks zDevon, Its working, And For razor, i tried, but the command wont work.