Is there a way to optimize this code?
#4

Quote:
Originally Posted by DuyDang2412
Посмотреть сообщение
Thank you, this looks shorter (and less variables and may be faster?) than mine.
Well, the plugin is quite fast for splitting data from a string.

However, I did a mistake myself. The code I provided will take space as default delimiter. To set the delimiter, use "p<delimiter_here>rest_here". In your case:
pawn Код:
sscanf(_money, "p<.>dd", cash, coin);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)