• Setting new Spawn Point
    2 replies, posted
I get this error: [gamemodes\soccer\gamemode\init.lua:30] function arguments expected near '==' [lua]function OnRoundResult ( t, ply ) UTIL_FreezeAllPlayers() if ply:Team == t and ply:Team == TEAM_MILAN then // Line 30 team.SetSpawnPoint ( TEAM_MILAN, "info_player_counterterrorist" ) elseif ply:Team == t and ply:Team == TEAM_BARCELONA then team.SetSpawnPoint ( TEAM_BARCELONA, "info_player_terrorist" ) else if ply:Team == TEAM_MILAN then team.SetSpawnPoint ( TEAM_MILAN, "info_player_teambluelost, info_player_counterterrorist" ) elseif ply:Team == TEAM_BARCELONA then team.SetSpawnPoint( TEAM_BARCELONA, "info_player_teamredlost, info_player_terrorist" ) end end timer.Simple( 5, function() GM:EndOfRound( true ) end ) end[/lua] I can't seem to find out whats wrong...
You have to type () after a methode or a function.
Hint, team.
Sorry, you need to Log In to post a reply to this thread.