Tech Lounge > Programming
Help! Gamemode coding trouble
Ruben:
--- Quote from: StartedBullet 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
--- End quote ---
Well just looking at that o.o.
You are not sending var parameters in the function, ply there is marked as global, uhmm.
Another thing is that i think that is "function GM:PlayerInitialSpawn( ply )" instead "GM:PlayerInitialSpawn()" so you need to fix it and close.
Use ply:ConCommand() instead and if you running local use RunConsoleCommand(). Anyway valve will block some of the client commands unless you know how to bypass that ez shiz :). bai
and sry for mah english sux. :C
Tomcat:
HOLY SHIT RUBEN
Ruben:
--- Quote from: Tomcat on June 22, 2010, 07:26:04 AM ---HOLY SHIT RUBEN
--- End quote ---
Hax o.o Today is mah Birth day :p, but i still have to work on the FUUUUUUUUU- project -.- well :/ bai thar.
DoeniDon:
OHSHI- HAPPY BIRTHDAY RUBEN!
Nice to see you're still alive <3
Tomcat:
HAPPY BRITHDAY I HOPEZ JOO HAZ FUN on that shit pingaz hard project
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version