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