Raised This Month: $ Target: $400
 0% 

Need help on understanding the coding of a plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
anupm
Senior Member
Join Date: May 2010
Old 06-20-2011 , 13:48   Need help on understanding the coding of a plugin
Reply With Quote #1

Hi ,

I am a learner . I try to read many source code of plugins . I was going through one code but I can't understand a bit of it .

Please help .

The plugin url

http://forums.alliedmods.net/showthread.php?p=597185

The part I can't understand


stock fm_find_ent_by_owner(index, const classname[], owner, jghgtype = 0)
{
new strtype[11] = "classname", ent = index
switch (jghgtype)
{
case 1: strtype = "target"
case 2: strtype = "targetname"
}

while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner) {}

return ent
}
anupm is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode