[QUESTION/HELP] DCMD Question
#14

Quote:
Originally Posted by alpha500delta
View Post
Actually its < 100 and not < 101 because it'll count 101 to. You have to add <= 101 for that
Also I dont think amount needs to be a float
That's actually not correct. Think about what you're saying there, he wants the limit to be 100. Which means what he's written is correct.

< 100 means less than 100, which means it'll work up to 99
<= 101 means less than or equal to 101, which means it'll work up to 101.

The reason it's not working is because of your logic, you're saying this currently:

pawn Code:
if(amount > 1 || amount < 101)
This means if amount is greater than 1 OR less than 101, execute code. Which means it will always be executed, you need to change your logic to this:

pawn Code:
if(amount > 1 && amount < 101)
This means if amount is greater than 1 AND less than 101, then the code will be executed, which is what you're looking for.
Reply


Messages In This Thread
[QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 14:07
Re: [QUESTION/HELP] DCMD Question - by Not available - 18.01.2011, 14:11
Re: [QUESTION/HELP] DCMD Question - by damiantof7 - 18.01.2011, 14:11
Re: [QUESTION/HELP] DCMD Question - by damiantof7 - 18.01.2011, 14:13
Re: [QUESTION/HELP] DCMD Question - by iggy1 - 18.01.2011, 14:13
Re: [QUESTION/HELP] DCMD Question - by xir - 18.01.2011, 14:15
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 14:18
Re: [QUESTION/HELP] DCMD Question - by alpha500delta - 18.01.2011, 14:23
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 14:36
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 14:47
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:03
Re: [QUESTION/HELP] DCMD Question - by alpha500delta - 18.01.2011, 15:07
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:09
Re: [QUESTION/HELP] DCMD Question - by JaTochNietDan - 18.01.2011, 15:14
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:27
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 15:30
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:33
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 15:37
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:47
Re: [QUESTION/HELP] DCMD Question - by JaTochNietDan - 18.01.2011, 15:49
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 15:53
Re: [QUESTION/HELP] DCMD Question - by Alex_Valde - 18.01.2011, 15:55
Re: [QUESTION/HELP] DCMD Question - by JaTochNietDan - 18.01.2011, 15:57
Re: [QUESTION/HELP] DCMD Question - by Larsey123IsMe - 18.01.2011, 16:30

Forum Jump:


Users browsing this thread: 12 Guest(s)