gTeam define to other script
#1

Heey all,
I want to know if its possible to add 1 team in gm and in fs to the same team so its defining 1 team.
Explain:
Fs:
Код:
#define TEAM_TEST 1
Gm:
Код:
#define TEAM_TEST 1
Why i need this?
Because i need for a house system because the system cant be in gm because of lots of errors.
Or is there other code for it?


Thanks all(really need this)
Reply
#2

defines only tagging.

example

#define TEAM_RACER 1

#define TEAM_A 1

1 = 1 WTF ?

TEAM_RACER = TEAM_A
Reply
#3

Quote:
Originally Posted by DayaKisteme
Посмотреть сообщение
defines only tagging.

example

#define TEAM_RACER 1

#define TEAM_A 1

1 = 1 WTF ?

TEAM_RACER = TEAM_A
I will give a better explain.
I have made a pyromaniac job who can put houses in fire.
The house system is in a fs because i cant add it to the gm because i get lots of errors.
You can choose the team in the gm so i need to define it in the house system and the gm.
In gm you choose the team and in the fs you can fire a house if you are that team.
I hope you understand me and get a solve.
Reply
#4

Use PVars or properties to share information between scripts.
Reply
#5

Quote:
Originally Posted by admigo
Посмотреть сообщение
I will give a better explain.
I have made a pyromaniac job who can put houses in fire.
The house system is in a fs because i cant add it to the gm because i get lots of errors.
You can choose the team in the gm so i need to define it in the house system and the gm.
In gm you choose the team and in the fs you can fire a house if you are that team.
I hope you understand me and get a solve.
i understand. u can use PVarInt's.

It's global variables.if u select team in gm you

>>>

Код:
SetPVarInt(playerid, "Team", 2);
and u can use in fs

>>>

Код:
if(GetPVarInt(playerid, "Team") == 2 )
Reply
#6

@DayaKisteme:Thank you so much! Working!
@******:I will try that if i know more about that things:P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)