Command not working as intended
#9

Quote:
Originally Posted by Bible
Посмотреть сообщение
He didn't. Have you even tried changing any of his code with the example code that I provided in my previous reply?

His code:
pawn Код:
if(!strcmp(params, "Bronze", true, 7))
Example code:
pawn Код:
if(!strcmp(type, "Bronze", true, 7))
As you can see, after the opening bracket of the strcmp function, he compared the params (userid AND type) with a string. What you want is compare the 'type' parameter to a string and see if it is equal to each other and that is what I did in the example code.
Oh sorry, I understand now, thank you. What does the number 7 do?
Reply


Messages In This Thread
Command not working as intended - by Luke_James - 22.02.2015, 17:33
Re: Command not working as intended - by Golf - 22.02.2015, 17:39
Re: Command not working as intended - by Luke_James - 22.02.2015, 18:17
Re: Command not working as intended - by AndySedeyn - 22.02.2015, 18:47
Re: Command not working as intended - by Luke_James - 22.02.2015, 20:08
Re: Command not working as intended - by AndySedeyn - 22.02.2015, 20:40
Re: Command not working as intended - by Luke_James - 22.02.2015, 21:08
Re: Command not working as intended - by AndySedeyn - 22.02.2015, 21:14
Re: Command not working as intended - by Luke_James - 22.02.2015, 21:24
Re: Command not working as intended - by AndySedeyn - 22.02.2015, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)