gteam - 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: gteam (
/showthread.php?tid=156320)
gteam -
ToPhrESH - 22.06.2010
ok i keep getting 5 errors on my gteam stuff and i looked on wiki to see what i have done wrong but I have done everyhting correctly
I did that
then this is what I am getting errors on:
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = TEAM_BLUE;
}
else
{
gTeam[playerid] = TEAM_RED;
}
}
It says it doesnt know what gTeam is
Re: gteam -
titanak - 22.06.2010
try this
https://sampwiki.blast.hk/wiki/Main_Page
Re: gteam -
ToPhrESH - 22.06.2010
Yes that is what im saying. i did it all by my self. it had an error. then i deleted all of it and did what the wiki told me. it still diesnt work..any ideas?
Re: gteam -
Anthony_Brassi - 22.06.2010
what are the errors?
and did you
#define TEAM_BLUE 0
#define TEAM_RED 1
at the top of your script?
Re: gteam -
ToPhrESH - 22.06.2010
NVM i found out what i did, i didnt put these after the #else that was justa stupid mistake

thanks though for help!