General > Developers Corner

Help again with RunConsoleCommand

<< < (3/3)

Buzzkill:
Silly question, but are you testing in single player?

[TBR] Lt Usher:
No, it's hosted on a test bed server

JamminR:
GameConsole command is likely choking on the colon ":" in the steamid.
Partial reason IMO that Gmod went to using player ids.
There are ways around it, I don't remember off top of my head.
Might try escaping out some quotes so it tries to wrap the colon in quotes?

--- Quote ---local ccstring = ("dz_giveitemid \"".. steamid .."\" item_credits ".. credits .."\n")
--- End quote ---
Does dz_giveitemid have to be passed a steam ID?
Can't it handle a name or player object? (if it's only steamid, bad design imo)

[TBR] Lt Usher:
Unfortunately it will only take a steamid as it enters Into a MySQL database, dz_giveitem works with players name but didn't have much luck there either for some reason?

Navigation

[0] Message Index

[*] Previous page

Go to full version