Author Topic: Help! Gamemode coding trouble  (Read 2225 times)

0 Members and 1 Guest are viewing this topic.

Offline StartedBullet

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-1
    • View Profile
Help! Gamemode coding trouble
« on: June 01, 2010, 08:10:19 PM »
Ok, just a couple things left


gamemodes\engine\gamemode\init.lua:58: unexpected symbol near ')'

GM:PlayerInitialSpawn()  // When spawning after joining the sever
    ply:SetTeam(3)
Spectate( ply, ent )
    ply:Spectate( OBS_MODE_CHASE )
ply:SpectateEntity( ent )
player.concommand( "sb_teams" )  ) <----------This one is the prob, i forgot to mark it
 


« Last Edit: June 02, 2010, 06:32:30 PM by StartedBullet »

Offline StartedBullet

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-1
    • View Profile
Re: Help! Gamemode coding trouble
« Reply #1 on: June 01, 2010, 09:04:06 PM »
hmm no help so far

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Help! Gamemode coding trouble
« Reply #2 on: June 02, 2010, 01:39:27 PM »
What exactly is wrong?
-Admin Application-

Follow the rules or I will you.

Offline Tomcat

  • Smartical
  • Übermensch
  • *****
  • Posts: 1694
  • Karma: +42/-13
  • Gender: Male
  • OMG IS DAT A CHEEZEBURGER
    • View Profile
    • Rnd Upload
Re: Help! Gamemode coding trouble
« Reply #3 on: June 02, 2010, 04:00:52 PM »
why is it all commented

Quote
Andrew: your mom spazzes
.:RND`=- Tomcat: not me
Tomcat: andrew
Tomcat: dont go there
.:RND`=- Tomcat: i will rape you all they way back to 1980

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Help! Gamemode coding trouble
« Reply #4 on: June 02, 2010, 05:11:19 PM »
why is it all commented
:l It helps when you first try out gamemode making
holy shit wtf
-Admin Application-

Follow the rules or I will you.

Offline StartedBullet

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-1
    • View Profile
Re: Help! Gamemode coding trouble
« Reply #5 on: June 02, 2010, 05:35:39 PM »
:l It helps when you first try out gamemode making
holy shit wtf

Its kinda cobbled together from tuts and my own custom stuff

Offline Tomcat

  • Smartical
  • Übermensch
  • *****
  • Posts: 1694
  • Karma: +42/-13
  • Gender: Male
  • OMG IS DAT A CHEEZEBURGER
    • View Profile
    • Rnd Upload
Re: Help! Gamemode coding trouble
« Reply #6 on: June 02, 2010, 05:36:48 PM »
lol so are you running it with teh comments on the text?

Quote
Andrew: your mom spazzes
.:RND`=- Tomcat: not me
Tomcat: andrew
Tomcat: dont go there
.:RND`=- Tomcat: i will rape you all they way back to 1980

Offline StartedBullet

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-1
    • View Profile
Re: Help! Gamemode coding trouble
« Reply #7 on: June 02, 2010, 05:37:46 PM »
errrr ya, lol

Offline Tomcat

  • Smartical
  • Übermensch
  • *****
  • Posts: 1694
  • Karma: +42/-13
  • Gender: Male
  • OMG IS DAT A CHEEZEBURGER
    • View Profile
    • Rnd Upload
Re: Help! Gamemode coding trouble
« Reply #8 on: June 02, 2010, 05:45:38 PM »
lol
so which line is the prob

Quote
Andrew: your mom spazzes
.:RND`=- Tomcat: not me
Tomcat: andrew
Tomcat: dont go there
.:RND`=- Tomcat: i will rape you all they way back to 1980

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Help! Gamemode coding trouble
« Reply #9 on: June 03, 2010, 01:45:13 PM »
lol
so which line is the prob
I already helped him with it. lol
-Admin Application-

Follow the rules or I will you.

Offline Tomcat

  • Smartical
  • Übermensch
  • *****
  • Posts: 1694
  • Karma: +42/-13
  • Gender: Male
  • OMG IS DAT A CHEEZEBURGER
    • View Profile
    • Rnd Upload
Re: Help! Gamemode coding trouble
« Reply #10 on: June 03, 2010, 03:56:41 PM »
OH STFU KRASHER BEFORE I BAN YOU

Quote
Andrew: your mom spazzes
.:RND`=- Tomcat: not me
Tomcat: andrew
Tomcat: dont go there
.:RND`=- Tomcat: i will rape you all they way back to 1980

Offline Krasher

  • -=RND Help Center=-
  • WaffleBBQrz
  • ******
  • Posts: 2764
  • Karma: +75/-47
  • Gender: Male
  • PM me if you have questions.
    • View Profile
    • Forum Page
Re: Help! Gamemode coding trouble
« Reply #11 on: June 03, 2010, 05:57:06 PM »
OH STFU KRASHER BEFORE I BAN YOU
imma ban you nub, gtfo
-Admin Application-

Follow the rules or I will you.

Offline Peetah

  • Unnecessary encouragement guy.
  • Übermensch
  • *****
  • Posts: 877
  • Karma: +16/-4
  • Gender: Male
  • And God saw that it was Good.
    • View Profile
    • Youtube Account
Re: Help! Gamemode coding trouble
« Reply #12 on: June 03, 2010, 07:18:50 PM »
INB4KickedOut





Offline emilhem

  • Regular Member
  • ***
  • Posts: 158
  • Karma: +9/-1
  • Gender: Male
  • Synergy anyone??
    • View Profile
Re: Help! Gamemode coding trouble
« Reply #13 on: June 06, 2010, 02:09:44 PM »
Remember to capitalize the correct letters.

Read this
http://wiki.garrysmod.com/?title=Player.ConCommand

I don't believe Player.ConCommand be used like you used it.

Wiremod!

Offline Tomcat

  • Smartical
  • Übermensch
  • *****
  • Posts: 1694
  • Karma: +42/-13
  • Gender: Male
  • OMG IS DAT A CHEEZEBURGER
    • View Profile
    • Rnd Upload
Re: Help! Gamemode coding trouble
« Reply #14 on: June 07, 2010, 04:26:58 PM »
lol email its been fixed for while

Quote
Andrew: your mom spazzes
.:RND`=- Tomcat: not me
Tomcat: andrew
Tomcat: dont go there
.:RND`=- Tomcat: i will rape you all they way back to 1980