SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/10/2012, 06:17 PM   #1
razor steven
Big Clucker
 
Join Date: Jun 2012
Posts: 71
Reputation: -4
Smile How to define stuff?

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.
__________________
United States Roleplay ~US:RP...

Awesome server with UNIQUE features.
Come and join US:RP today, Bet you're gonna love it.


212.227.143.24:8490

www.us-rp.com
razor steven is offline   Reply With Quote
Old 30/10/2012, 07:13 PM   #2
Eric
Big Clucker
 
Eric's Avatar
 
Join Date: Jul 2010
Location: Ontario, Canada
Posts: 159
Reputation: 16
Default Re: How to define stuff?

Make it a stock, you don't need to define it.
Eric is offline   Reply With Quote
Old 30/10/2012, 07:31 PM   #3
Skimmer
Huge Clucker
 
Skimmer's Avatar
 
Join Date: Oct 2012
Location: Germany
Posts: 492
Reputation: 56
Default AW: How to define stuff?

What's your current variable for saving the players gov.

I do an example:

Code:
pInfo[playerid][pGov] // That's your variable
Code:
stock IsAGov(playerid)
{
	if(pInfo[playerid][pGov] == 1)
	{
	    return 1;
	} else return 0;
}
Skimmer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tor and stuff steki. Everything and Nothing 1 01/08/2011 08:58 PM
[Question]Define in define Scottas Help Archive 8 02/07/2011 05:45 AM
Need help with some stuff. Snipa Help Archive 9 11/08/2010 01:34 AM
Using Colon instead of Paren. to define params in #define Daren_Jacobson Help Archive 1 05/11/2009 11:48 PM
[Solved] Using a #define in a #define Extremo Help Archive 6 16/10/2009 10:25 AM


All times are GMT. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.