SA-MP Forums Archive
Team - 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: Team (/showthread.php?tid=318474)



Team - SpankMe2 - 15.02.2012

Hey,

Just a question nothing special but why does GF use gTeam, And PlayerInfo[playerid][pTeam]? Why not jst one of them?


Re: Team - Ballu Miaa - 15.02.2012

They will be using PlayerInfo[playerid][pTeam] To Store Team's for a Player! So that one can only choose a Team and it will be stored under his PlayerVariable Enum to save the data of the player!

They will be using both because of some function's defination or something so it wont interfere and they can check the Team for a Player!


Re: Team - SpankMe2 - 15.02.2012

So why cant you just use the same headers, but use PlayerInfo[playerid][pTeam] under them and keep checking? Sorry to ask I'm just wondering


Re: Team - Ballu Miaa - 15.02.2012

You can. But a Scripter decide's how he's going to code a function to complete a specific task.