team deathmatch - 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: team deathmatch (
/showthread.php?tid=65510)
team deathmatch -
ndr99 - 13.02.2009
everything goes well untill i add the line;
new gTeam[MAX_PLAYERS];
Because when i compile it it says Warning!
warning 203: symbol is never used: "gTeam"
am i doing something wrong here?
Re: team deathmatch -
SuperS0nic - 13.02.2009
You dont need gTeam, if you want to use it then use the function..
To solve the error remove:
Re: team deathmatch -
ndr99 - 13.02.2009
Dont know how, and if i even need it.
im just following the tutorial my english is fucked
and this ;
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = TEAM_GROVE;
}
else
{
gTeam[playerid] = TEAM_BALLA;
}
}
gives the same warning
Re: team deathmatch -
Sh4rk1337 - 13.02.2009
What the warning means is that gTeam[MAX_PLAYERS] isn't being used, thus you don't need it and you can remove, so if you remove it the error will go away. Or if the gTeam[MAX_PLAYERS] is being used some where then it will also fix the warning.
Re: team deathmatch -
ndr99 - 13.02.2009
never mind im removing gta it stresses me out
all that effort just to make a room pfff
might as well play xbox
bye
Re: team deathmatch -
Sh4rk1337 - 13.02.2009
You shouldn't give up, It's not that hard to learn and it's alot of fun. But again its you're choice but if you do decide to stay PM me i'll give you my msn and i can help you out a bit.
Re: team deathmatch -
Daren_Jacobson - 13.02.2009
that warning doesn't effect anything, just ignore it, until the time you need to use it. heck, when i started i made floats with a lower-case 'f' "new float

" instead of "new Float

".
Re: team deathmatch -
ndr99 - 13.02.2009
tnx