SA-MP Forums Archive
Error, someone help please. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error, someone help please. (/showthread.php?tid=514095)



Error, someone help please. - PrinceOfPersia - 19.05.2014

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)



Re: Error, someone help please. - JFF - 19.05.2014

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


Re: Error, someone help please. - PrinceOfPersia - 19.05.2014

Код:
SetHolderWeapon(playerid, params);



Re: Error, someone help please. - JFF - 19.05.2014

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

if yes show us it


Re: Error, someone help please. - PrinceOfPersia - 19.05.2014

I didn't create it, no.

Can you give them to me ?


Re: Error, someone help please. - JFF - 19.05.2014

show me that codes that around line 28400


Re: Error, someone help please. - PrinceOfPersia - 19.05.2014

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



Re: Error, someone help please. - JFF - 19.05.2014

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);



Re: Error, someone help please. - PrinceOfPersia - 19.05.2014

Which one exact ?

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



Re: Error, someone help please. - JFF - 19.05.2014

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;
}