Question about "return"
#2

Basicly
pawn Код:
return 1;
means the script will see it as true and will execute it, if it returns false
pawn Код:
return 0;
it means the script will ignore it as far as I know. For example take OnPlayerUpdate, if it returns 0 the server wont update the player because the script is not executing it.
Theres probably someone that can explain this better, Good luck
Reply


Messages In This Thread
Question about "return" - by Riwerry - 05.01.2014, 19:46
Re: Question about "return" - by Voxel - 05.01.2014, 19:49
Re: Question about "return" - by RedFusion - 05.01.2014, 19:49
Re: Question about "return" - by Riwerry - 05.01.2014, 19:51
Re: Question about "return" - by RedFusion - 05.01.2014, 20:18
Re: Question about "return" - by Riwerry - 05.01.2014, 20:22
Re: Question about "return" - by K9IsGodly - 05.01.2014, 20:25
Re: Question about "return" - by Vince - 05.01.2014, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)