View Single Post
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-27-2020 , 13:53   How does "return" work?
Reply With Quote #1

Hey, so I started coding with Pawn like 3-4 weeks, and I think that I'm pretty good for that small amount of time, but there is one thing that I don't really understand.

How does return work actually work? So if I set like PLUGIN_HANDLED in else statement, it said it would disable from going to other plugins, how does that "go" to other plugins.

In this code here, made by OciXCrom, what is returning, and where does it go (sorry if I sound like a total dumbass), and what does "?" mean?
PHP Code:
return cs_get_user_team(iVictim) == cs_get_user_team(iAttacker) ? HAM_SUPERCEDE HAM_IGNORED 
Can anyone explain to me what does it do (more in-depth than disables from going to other plugins)
And how I can be useful.

Sorry if a thread like this already exists.
__________________
Contact! || Discord:
Mr_Boopsy_#2066

Last edited by supertrio17; 06-27-2020 at 13:54.
supertrio17 is offline