29.04.2017, 06:35
That's not going to fix this at all...
Not in the slightest.
You're trying to make a command that makes the playerid you input in the command (giveplayerid) to be 'hunted', which, in the command you are creating giveplayerid, yet not setting it.
You then check giveplayerid, when it's not set.
You then use sscanf to check the parameters, for giveplayerid.
This is where copy-pasting gets you... You don't understand the flow of the command, nor how to actually do what you want to do, due to simply modifying commands thinking that it'll work, when it doesn't.
Another problem is this...
It should be
This is another issue...
You have user, int, int, int, int... Matching out to giveplayerid, gun1, gun2, gun3, prizetype...
Price is simply you taking /sellgun from a random script and mistakenly leaving that in there, as it should throw an error saying there's too many arguments on that function.
With what you've put in the command help, you can't simply make an assumption that you can put in words into the command and have it output correctly... It's not going to pick up that you want to give 'mats' 'crack' weaponset' magically.
Not to mention, you have this prizetype variable created, yet you also don't even use it at all in the command.
Not in the slightest.
You're trying to make a command that makes the playerid you input in the command (giveplayerid) to be 'hunted', which, in the command you are creating giveplayerid, yet not setting it.
You then check giveplayerid, when it's not set.
You then use sscanf to check the parameters, for giveplayerid.
This is where copy-pasting gets you... You don't understand the flow of the command, nor how to actually do what you want to do, due to simply modifying commands thinking that it'll work, when it doesn't.
Another problem is this...
Код:
new gun1, gun2, gun3, prizetype,
Код:
new gun1, gun2, gun3, prizetype;
Код:
if(sscanf(params, "uiiii", giveplayerid, gun1, gun2, gun3, prizetype, price))
Price is simply you taking /sellgun from a random script and mistakenly leaving that in there, as it should throw an error saying there's too many arguments on that function.
With what you've put in the command help, you can't simply make an assumption that you can put in words into the command and have it output correctly... It's not going to pick up that you want to give 'mats' 'crack' weaponset' magically.
Not to mention, you have this prizetype variable created, yet you also don't even use it at all in the command.