sscanf question
#1

Is there possible to do that player can enter more value but it's not necessarily.

For example if i enter
/veh 411 he will spawn Car ID 411 for me,with 0,0 colors.But if I enter /veh 411 1 1 ,he will give me Car ID 411 ,with 1,1 colors..


When I do this:

Код:
if(sscanf(params, "iii", veh, col1,col2))
He MUST enter 3 variables,but i don't know how to make that he can enter only one variable and it will work.

Thanks
Reply


Messages In This Thread
sscanf question - by GospodinX - 10.05.2018, 08:37
Re: sscanf question - by Dayrion - 10.05.2018, 09:03
Re: sscanf question - by GospodinX - 10.05.2018, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)