❓ [SOLVED] [help] onplayerspawned()

Posts 1–9 of 9 · Page 1 of 1
Err.
That's pseudocode with your functions, Big doubt about the if(self isHost()) part.
Well, As it could be trueval I don't know, Never messed around with GSC's.

Code:
onPlayerSpawned()
{
	self endon("disconnect");

	for(;;)
	{
		self waittill("spawned_player");
		self thread doDvars();
                if(self isHost())
		{
		    self thread doGod();
		}
	}
}
As Mel said, that's kinda like pseudocode cause your asking to... err, never mind
Anyway, what Mel wrote in the codebox is correct
wait what do u mean pseudocode? whats wrong with it
Quote Originally Posted by Erige View Post
wait what do u mean pseudocode? whats wrong with it
Pseudocode is more theorical than practical code because it is an "idea" of code we do without knowing what it will actually do inside the desired context.

Did you really needed help only with that thing ?
Quote Originally Posted by Melodia View Post
Pseudocode is more theorical than practical code because it is an "idea" of code we do without knowing what it will actually do inside the desired context.

Did you really needed help only with that thing ?
Doh, me dumb dumb.
Because you told us to merge doDvars, if(self isHost()) and doGod and we weren't sure if you wanted doDvars under if(self isHost()) and vice-versa.
got what i needed thanks
yalll are right

/Marked as Solved
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us