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

Error: Number of arguments doesn't match definition


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 03-06-2013 , 04:02   Error: Number of arguments doesn't match definition
Reply With Quote #1

PHP Code:
    if(is_user_alive(id) && !is_user_zombie(id))
    {
        if (
get_pcvar_num(cvar_infectme))
        {
            
infect_user(id)
            
set_hudmessage(25500, -1.00.4006.08.0)
            
show_hudmessage(id"Zombi olmaya karar verdin. Artik Zombisin!")
            
client_print(idprint_chat"[BIOSCAN] Enfeksiyon Kaptin!")
            
set_task(0.5,"infect_hold",id)
            return 
PLUGIN_CONTINUE
        
}
    } 

PHP Code:
infect_user(id
Attached Files
File Type: inc biohazard.inc (2.1 KB, 93 views)
Erdener is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-06-2013 , 04:47   Re: Error: Number of arguments doesn't match definition
Reply With Quote #2

PHP Code:
/* Makes a user zombie */
native infect_user(victimattacker
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 03-06-2013 at 04:47.
YamiKaitou is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-06-2013 , 04:48   Re: Error: Number of arguments doesn't match definition
Reply With Quote #3

And ? You have th inc file, and you still don't understand what to do ?

/* Makes a user zombie */
native infect_user(victim, attacker)
__________________
Arkshine is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 03-06-2013 , 04:58   Re: Error: Number of arguments doesn't match definition
Reply With Quote #4

i have tried them. But, i got the error again...
Erdener is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-06-2013 , 05:12   Re: Error: Number of arguments doesn't match definition
Reply With Quote #5

Tried what ?
__________________
Arkshine is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 03-06-2013 , 07:19   Re: Error: Number of arguments doesn't match definition
Reply With Quote #6

not compile
Erdener is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-06-2013 , 07:25   Re: Error: Number of arguments doesn't match definition
Reply With Quote #7

Tried what ? Compiling what ? EXACTLY ? It seems you don't want help.
__________________
Arkshine is offline
Old 03-06-2013, 13:16
Erdener
This message has been deleted by Erdener. Reason: nvm
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-06-2013 , 13:21   Re: Error: Number of arguments doesn't match definition
Reply With Quote #8

Read again the second an third post. It's quite clear.
__________________
Arkshine is offline
Old 03-06-2013, 13:26
Erdener
This message has been deleted by Erdener. Reason: nvm
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 03-06-2013 , 13:31   Re: Error: Number of arguments doesn't match definition
Reply With Quote #9

To dumb it down even more:

The function needs two arguments.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 03-06-2013 , 13:33   Re: Error: Number of arguments doesn't match definition
Reply With Quote #10

i use this
Attached Files
File Type: sma Get Plugin or Get Source (bio_infectme.sma - 533 views - 2.8 KB)
Erdener 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 18:19.


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