strlib's or any other Split Function Exists?
#1

I saw a 2-3 lines of code in a gamemode that loaded a date from a file in a string form e.g "07.11.2016" and it used a function (I Don't Remember) to split the string where is found the "." symbol and then saved all 3 values in different variables.

If you know any function that can do this job,tell me in the comment.
Reply
#2

Sscanf
Reply
#3

Sscanf
Reply
#4

PHP код:
new var1var2var3;
sscanf("07.11.2016","p<.>ddd",var1,var2,var3); 
https://sampforum.blast.hk/showthread.php?tid=570927
Reply
#5

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
new var1var2var3;
sscanf("07.11.2016","p<.>ddd",var1,var2,var3); 
https://sampforum.blast.hk/showthread.php?tid=570927
Thanks,+Rep
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)