strtobool
#7

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
if(sscanf(params, "ll", "true false", bool1, bool2))
Note: lowercase L (stands for logical).
I need this function a bit in other way.

I've did it like this:

pawn Код:
pData[playerid][HiddenTrailers][i] = strval(szResult);
But I get tag mistach, because statsHiddenTrailers is a bool.
Reply


Messages In This Thread
strtobool - by BaubaS - 16.06.2012, 19:51
Re: strtobool - by ViniBorn - 16.06.2012, 20:43
Re: strtobool - by Vince - 16.06.2012, 20:44
Re: strtobool - by Djole1337 - 16.06.2012, 20:48
Re: strtobool - by BaubaS - 16.06.2012, 21:31
Re: strtobool - by Vince - 16.06.2012, 21:38
Re: strtobool - by BaubaS - 16.06.2012, 21:40
Re: strtobool - by AndreT - 16.06.2012, 21:45
Re: strtobool - by BaubaS - 16.06.2012, 22:24

Forum Jump:


Users browsing this thread: 2 Guest(s)