AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error: Number of arguments doesn't match definition (https://forums.alliedmods.net/showthread.php?t=210079)

Erdener 03-06-2013 04:02

Error: Number of arguments doesn't match definition
 
1 Attachment(s)
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


YamiKaitou 03-06-2013 04:47

Re: Error: Number of arguments doesn't match definition
 
PHP Code:

/* Makes a user zombie */
native infect_user(victimattacker


Arkshine 03-06-2013 04:48

Re: Error: Number of arguments doesn't match definition
 
And ? You have th inc file, and you still don't understand what to do ?

/* Makes a user zombie */
native infect_user(victim, attacker)

Erdener 03-06-2013 04:58

Re: Error: Number of arguments doesn't match definition
 
i have tried them. But, i got the error again...

Arkshine 03-06-2013 05:12

Re: Error: Number of arguments doesn't match definition
 
Tried what ?

Erdener 03-06-2013 07:19

Re: Error: Number of arguments doesn't match definition
 
not compile

Arkshine 03-06-2013 07:25

Re: Error: Number of arguments doesn't match definition
 
Tried what ? Compiling what ? EXACTLY ? It seems you don't want help.

Arkshine 03-06-2013 13:21

Re: Error: Number of arguments doesn't match definition
 
Read again the second an third post. It's quite clear.

Backstabnoob 03-06-2013 13:31

Re: Error: Number of arguments doesn't match definition
 
To dumb it down even more:

The function needs two arguments.

Erdener 03-06-2013 13:33

Re: Error: Number of arguments doesn't match definition
 
1 Attachment(s)
i use this


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

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