SA-MP Forums Archive
Team IDs keep getting changed from defines - 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 IDs keep getting changed from defines (/showthread.php?tid=665790)



Team IDs keep getting changed from defines - stormchaser206 - 16.04.2019

Pastebin: https://pastebin.com/ZuYaC49a

So I have the team numbers set to defines, starting with #define TEAM_USA 5000. Except for some reason, when I use my custom setplayerteam function (AltSetPlayerTeam), it makes TEAM_USA 136. And then 137 for 5001, and so on.

I don't understand why it's happening exactly, I would appreciate some advice.


Re: Team IDs keep getting changed from defines - Kane - 16.04.2019

Team IDs are 0-254 (0 is valid). 255 is NO_TEAM.


Re: Team IDs keep getting changed from defines - stormchaser206 - 16.04.2019

Quote:
Originally Posted by Kane
View Post
Team IDs are 0-254 (0 is valid). 255 is NO_TEAM.
That works dude, thanks!


Re: Team IDs keep getting changed from defines - stormchaser206 - 16.04.2019

So there's also another issue, the level names. When I type stats it starts to show the name, but then after the first letter it shows team name after the first two letters, ie if you're level 4, it should show Private First Class, but it instead shows "Pstralia" when you type stats? Any idea why? I'll give rep for every good answer.


Re: Team IDs keep getting changed from defines - khRamin78 - 17.04.2019

show us cods and definetion of your class names so we could be able to fix that issue


Re: Team IDs keep getting changed from defines - FireBoy89 - 17.04.2019

Posting the /stats command and naming function/definitions would help