Need a little help with making Teams
#1

I'm having some problems with making Teams, for my server...
I've read
https://sampwiki.blast.hk/wiki/PAWN_tutorial and http://weedarr.wikidot.com/teams
but i don't know what's wrong about mine tough.( incorrect identations i guess... )

Here's what i have
http://pastebin.com/m7397d1ef

And i get these errors when compiling;
Код:
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(66) : error 017: undefined symbol "SetPlayerToTeamColor"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(90) : warning 217: loose indentation
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(90) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(90 -- 91) : warning 215: expression has no effect
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(91) : error 001: expected token: ";", but found "return"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(96) : warning 217: loose indentation
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(96) : error 017: undefined symbol "SetPlayerTeamFromClass"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(98) : error 017: undefined symbol "classid"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(102) : error 017: undefined symbol "classid"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(106) : error 017: undefined symbol "classid"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(110) : error 017: undefined symbol "classid"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(114) : error 017: undefined symbol "classid"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(122) : error 017: undefined symbol "SetPlayerToTeamColour"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(141 -- 142) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(143) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mitch\Desktop\SERVER\filterscripts\TEAMS.pwn(148) : error 030: compound statement not closed at the end of file (started at line 65)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


13 Errors.
Reply
#2

I did a quick edit of code and left out gang zones from code posted as you need to finish the code first. You have no player classes yet.

http://pastebin.com/m7a30006b
Reply
#3

Thanks for the help, really appreciate it!
It works now

Sorry for my folishness
Reply
#4

Don't be sorry we all make mistakes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)