Multiple Param Commands with SSCANF
#5

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
As the guy with the family guy avatar said, also why are you using {s[10]} those brackets? (actual question not trying to sound smart or teach how to make simpler code) because I don't know if you can do like that, unsure! Uhm' I do not have the time atm to go on samp wiki and check what "r" next to {s[10]} stands for but I am always using "u" if it's an ID. If you use "u" the user can type in both an ID or part of the player name (not both at same time of course).

I have honestly never done the option param thing in commands yet but I have asked about it before. What I am reading is that you're going to pick a option string in your first sscanf ("s[128]") and based on that, it will compare "option" with "invite" aka if the player typed in "invite". Then you are asking the player if he typed in another string in your second sscanf. A string and an "r". I think a r/u would have been enough there. And that is what I think is the problem.
"r" is same as "u" but it excludes bots, and for the {s[10]} it leaves the "invite" for example checked, but not stored, that's what I read.
Reply


Messages In This Thread
Multiple Param Commands with SSCANF - by FalconWingsX - 17.12.2013, 18:17
Re: Multiple Param Commands with SSCANF - by Joe Staff - 17.12.2013, 18:22
Re: Multiple Param Commands with SSCANF - by FalconWingsX - 17.12.2013, 18:25
Re: Multiple Param Commands with SSCANF - by Hansrutger - 17.12.2013, 18:42
Re: Multiple Param Commands with SSCANF - by FalconWingsX - 17.12.2013, 18:53
Re: Multiple Param Commands with SSCANF - by Hansrutger - 17.12.2013, 19:00
Re: Multiple Param Commands with SSCANF - by FalconWingsX - 19.12.2013, 20:30
AW: Multiple Param Commands with SSCANF - by Nero_3D - 19.12.2013, 21:41
Re: AW: Multiple Param Commands with SSCANF - by Patrick - 19.12.2013, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)