OnPlayerSpawn vs. OnPlayerRequestSpawn
#4

Returns end the function at the respective line, any code below won't be executed anymore.

Whether you return 1 or 0 in custom functions doesn't matter in that case (if you do not use the return value of this function somewhere else). I prefer returning 1 as - unlike to other languages - you don't go for the phrase "I return 0 as there are 0 errors" in samp scripting anyways.

Just keep on returning 1, it's all fine.
Reply


Messages In This Thread
OnPlayerSpawn vs. OnPlayerRequestSpawn - by cAMo - 15.05.2010, 15:02
Re: OnPlayerSpawn vs. OnPlayerRequestSpawn - by juice.j - 15.05.2010, 15:06
Re: OnPlayerSpawn vs. OnPlayerRequestSpawn - by cAMo - 15.05.2010, 15:24
Re: OnPlayerSpawn vs. OnPlayerRequestSpawn - by juice.j - 15.05.2010, 15:37

Forum Jump:


Users browsing this thread: 2 Guest(s)