Error, someone help please.
#1

Hello, can someone help me within such an error ?

Here is the error

Код:
C:\Users\Mido\Desktop\HSRP\gamemodes\HSRP.pwn(28400) : error 035: argument type mismatch (argument 2)
The line
Код:
C:\Users\Mido\Desktop\HSRP\gamemodes\HSRP.pwn(28400) : error 035: argument type mismatch (argument 2)
Reply
#2

Quote:
Originally Posted by PrinceOfPersia
Посмотреть сообщение
Hello, can someone help me within such an error ?

Here is the error

Код:
C:\Users\Mido\Desktop\HSRP\gamemodes\HSRP.pwn(28400) : error 035: argument type mismatch (argument 2)
The line
Код:
C:\Users\Mido\Desktop\HSRP\gamemodes\HSRP.pwn(28400) : error 035: argument type mismatch (argument 2)
Show us the line
Reply
#3

Код:
SetHolderWeapon(playerid, params);
Reply
#4

Quote:
Originally Posted by PrinceOfPersia
Посмотреть сообщение
Код:
SetHolderWeapon(playerid, params);
u created this public/stock?

if yes show us it
Reply
#5

I didn't create it, no.

Can you give them to me ?
Reply
#6

show me that codes that around line 28400
Reply
#7

Код:
CMD:holder(playerid, params[])
{
    SetHolderWeapon(playerid, params);
    return 1;
}
CMD:remove(playerid, params[])
{
    #pragma unused params
    RemoveHolderWeapon(playerid);
    return 1;
}
Reply
#8

native SetHolderWeapon(gh_playerid, gh_weapon);

this is how the native work u should add a weapon id

for example u wanna attach a m4

you do like this

pawn Код:
SetHolderWeapon(playerid,31);
Reply
#9

Which one exact ?

That
Код:
    SetHolderWeapon(playerid, params);
Or that
Код:
native SetHolderWeapon(gh_playerid, gh_weapon);
Reply
#10

What u want ur code to do to attach a weapon right?

it u want to attach a m4 weapon u do like this

pawn Код:
CMD:holder(playerid, params[])
{
    SetHolderWeapon(playerid, 31); // 31 = m4 id
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)