Help with Command Hunted !
#5

Quote:
Originally Posted by FizzyWalshy
Посмотреть сообщение
Ok i will change playerid to giveplayerid
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...

Код:
new gun1,
		gun2,
		gun3,
		prizetype,
It should be

Код:
new gun1,
		gun2,
		gun3,
		prizetype;
This is another issue...

Код:
if(sscanf(params, "uiiii", giveplayerid, gun1, gun2, gun3, prizetype, price))
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.
Reply


Messages In This Thread
Help with Command Hunted ! - by FizzyWalshy - 29.04.2017, 02:23
Re: Help with Command Hunted ! - by NealPeteros - 29.04.2017, 05:13
Re: Help with Command Hunted ! - by Sew_Sumi - 29.04.2017, 05:33
Re: Help with Command Hunted ! - by FizzyWalshy - 29.04.2017, 05:54
Re: Help with Command Hunted ! - by Sew_Sumi - 29.04.2017, 06:35

Forum Jump:


Users browsing this thread: 1 Guest(s)