SA-MP Forums Archive
#define team_Example - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: #define team_Example (/showthread.php?tid=188068)



#define team_Example - X35B - 06.11.2010

If I had a team define (e.g #define team_australia) and no addplayerclass line for australia's spawn also with a 'AUSTRALIA' name that comes up when surfing through classes, would the server keep on restarting?


Re: #define team_Example - iggy1 - 06.11.2010

Try it. i don't think it should restart, but why would you display text saying "australia" on class select if there are no classes for them


Re: #define team_Example - TheXIII - 06.11.2010

Uhh... what? At least tell us what GM you are using or something. Also, what you just said doesn't make much sense, try to explain it better.

And why not to try... whatever you are asking, to find out if server would keep on restarting yourself?


Also, enums might be better for defining teams and such.
Instead of
pawn Код:
#define team_1 0
#define team_2 1
#define team_cows 2
you could do
pawn Код:
enum{
    team_1,
    team_2,
    team_cows
};



Re: #define team_Example - X35B - 06.11.2010

It actually is restarting.


Re: #define team_Example - iggy1 - 06.11.2010

Well you might aswell remove the austrailian team since your not using them.