How to define stuff? - 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: How to define stuff? (
/showthread.php?tid=388833)
How to define stuff? -
razor steven - 30.10.2012
If I want to make like "IsAGov" or stuff like that. How would I define the? I would like to be given a short tutorial on define and how it works, the simple way, please. It will be kind of you.
Re: How to define stuff? -
Eric - 30.10.2012
Make it a stock, you don't need to define it.
AW: How to define stuff? -
Skimmer - 30.10.2012
What's your current variable for saving the players gov.
I do an example:
Код:
pInfo[playerid][pGov] // That's your variable
Код:
stock IsAGov(playerid)
{
if(pInfo[playerid][pGov] == 1)
{
return 1;
} else return 0;
}