AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   functions source code (https://forums.alliedmods.net/showthread.php?t=51922)

Wolle 02-26-2007 15:30

functions source code
 
Hi all.
Let's say I wanted to look at how user_slap was written. Where would I look?

Thank you.

XxAvalanchexX 02-26-2007 19:29

Re: functions source code
 
http://www.amxmodx.org/downloads.php

Take a look at AMX Mod X Source-Code.

v1.76 Tarball is a .tar.gz file which contains all of the source files. These are best viewed with a C++ program, such as MSVC.

ViewVC/SVN allows you to browse all of the source files individually over the web.

SVN (Anonymous) lets you look through the source files with a SVN program, such as TortoiseSVN.

The user_slap code is in amxmodx/amxmodx.cpp (line 1472, if I'm looking at the correct version).

Wolle 02-27-2007 05:32

Re: functions source code
 
I'm looking at it atm.
That's exactly what I was looking for.
What's interessting though is that in my scripts user_slap gets passed 3 parameters. In the source to that function it expects only 2.
Am I missing something?


EDIT:
NVM it's an array of parameters ;)

Thanks for the help!
You shall be rewarded!! :D


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

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