Raised This Month: $51 Target: $400
 12% 

block/change map precaching


Post New Thread Reply   
 
Thread Tools Display Modes
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 10-22-2006 , 08:23   Re: block/change map precaching
Reply With Quote #11

Code:
native equal(const a[],const b[],c=0);

If you don't specify a 3rd param, it's automatically set to 0 (c=0);

Code:
if( equal("lol", "lol") )
Is the EXACT SAME THING as:
Code:
if( equal("lol", "lol", 0) )

Another example.
Here is the definition of set_task:
Code:
native set_task(Float:time,const function[],id = 0,parameter[]="",len = 0,flags[]="", repeat = 0);

The following two examples are exactly the same.
Code:
set_task(1.0, "tskGaben");
Code:
set_task(1.0, "tskGaben", 0, "", 0, "", 0);
__________________

Last edited by FatalisDK; 10-22-2006 at 08:31.
FatalisDK is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-22-2006 , 08:28   Re: block/change map precaching
Reply With Quote #12

My bad.

Last edited by [ --<-@ ] Black Rose; 10-22-2006 at 09:03.
[ --<-@ ] Black Rose is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 10-22-2006 , 09:03   Re: block/change map precaching
Reply With Quote #13

Code:
#include <amxmodx> #define PLUGIN "test" #define VERSION "0.1" #define AUTHOR "FatalisDK" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);         server_print("1: %i", equal("lol", "haha"));     server_print("2: %i", equal("lol", "haha", 0)); }


[AMXX] Loaded 23 admins from file
1: 0
2: 0
Executing AMX Mod X Configuration File
__________________
FatalisDK is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 10-22-2006 , 13:15   Re: block/change map precaching
Reply With Quote #14

Quote:
Originally Posted by FatalisDK View Post
Also need help with this -> http://ampaste.net/4372
Code:
public plugin_init() {     register_event("Damage", "event_damage", "be", "2!0") } public event_damage(id) {     new health = get_user_health(id)     if(health > 255 && !(health%256)) set_user_health(id, health-1) }
__________________
plop
p3tsin is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 10-22-2006 , 19:50   Re: block/change map precaching
Reply With Quote #15

Thanks p3t, I also use your bhop script detector, GJ on that too.
__________________
FatalisDK is offline
Reply



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 13:21.


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