number of arguments does not match definition
#1

How to fix it ?
Anone can help me ?
I u help me +repp


Код:
D:\Documents and Settings\titi\Desktop\DWA.pwn(17) : warning 202: number of arguments does not match definition
D:\Documents and Settings\titi\Desktop\DWA.pwn(41) : error 025: function heading differs from prototype
D:\Documents and Settings\titi\Desktop\DWA.pwn(48) : warning 202: number of arguments does not match definition
D:\Documents and Settings\titi\Desktop\DWA.pwn(89) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
PHP код:
#include <a_samp>
#include <sscanf2>
#include <jBlood>
#define HOLDING(%0) ((newkeys & (%0)) == (%0))
#define RELEASED(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
new check_timer[MAX_PLAYERS];
// Injured cripple walk (if shot in legs)
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
newkeys KEY_JUMP && !(oldkeys KEY_JUMP))
    {
        if(
GetPVarInt(playerid"InjuredWalkstyle") == 1)
        {
            
ShowBloodScreen(playerid15.0150);
            
ApplyAnimation(playerid"GYMNASIUM""gym_jog_falloff"4.101100);
        }
    }
    if(
HOLDING(KEY_WALK) || HOLDING(KEY_SPRINT))
    {
        if(
GetPVarInt(playerid"InjuredWalkstyle") == || IsPlayerRunning(playerid))
        {
              
ApplyAnimation(playerid"PED""WALK_old"4.111100);
        }
    }
    else if(
RELEASED(KEY_WALK) || RELEASED(KEY_SPRINT))
    {
        if(
GetPVarInt(playerid"InjuredWalkstyle") == 1)
        {
            
ClearAnimations(playerid);
        }
    }
    return 
true;
}
public 
OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    if(
bodypart == || bodypart == || IsPlayerFalling(playerid) && amount 6.0)
    {
        
SetPVarInt(playerid"InjuredWalkstyle"1);
        
SendClientMessage(playerid, -1"Kemba e lenduar..!");
        
ShowBloodScreen(playeridamount150);
        
check_timer[playerid] = SetTimerEx("RunnerCheck"500true"i"playerid);
    }
    
printf("Damage taken; %f - bodypart: %d"amountbodypart);
    return 
true;
}
stock IsPlayerRunning(playerid)
{
    new 
ai GetPlayerAnimationIndex(playerid);
    if(
ai == 1231) return true;
    return 
false;
}
stock IsPlayerFalling(playerid)
{
    new 
index GetPlayerAnimationIndex(playerid);
    if(
index >= 958 && index <= 979 || index == 1130 || index == 1195 || index == 1132) return true;
    return 
false;
}
forward RunnerCheck(playerid);
public 
RunnerCheck(playerid)
{
    if(
IsPlayerRunning(playerid))
    {
        if(
GetPVarInt(playerid"InjuredWalked") < 3)
        {
            
SetPVarInt(playerid"InjuredWalked"GetPVarInt(playerid"InjuredWalked") +1);
            
ApplyAnimation(playerid"PED""WALK_old"4.101100);
        }
        else if(
GetPVarInt(playerid"InjuredWalked") >= 3)
        {
            
SetPVarInt(playerid"InjuredWalked"0);
               
ShowBloodScreen(playerid15.0150);
            
ApplyAnimation(playerid"GYMNASIUM""gym_jog_falloff"4.101100);
        }
    }
    return 
true;

Reply
#2

Try Edit OnPlayerTakeDamage on the line 41 to _OnPlayerTakeDamage
Reply
#3

PHP код:
(41) : warning 235: public function lacks forward declaration (symbol "_OnPlayerTakeDamage"
:/
Reply
#4

Looks like you used different numbers of arguments in the function ShowBloodScreen.
Show the code where this function is defined.
Reply
#5

what code?
Reply
#6

Its look like You have 2 OnPlayerTakeDamage in your script if you find one you have to delete it!
Reply
#7

I saw that you use the jBlood include. Make sure you have the latest version of the include: https://sampforum.blast.hk/showthread.php?tid=492847
Reply
#8

no i have just 1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)