sscanf - specify a string if empty
#1

Alright, recently I have been doing a certain command, I want if the player didn't type anything in the 'doorname' it gives the name None.. how to do that in sscanf.

pawn Код:
if(sscanf(params,"s[32]s[32]", type, doorname))
etc..

like if the doorname is empty set the doorname = "None";

Thanks in advance.
Reply


Messages In This Thread
sscanf - specify a string if empty - by Natric - 21.09.2014, 18:20
Re: sscanf - specify a string if empty - by Pottus - 21.09.2014, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)