Change script methode
#1

Hi,so its just a question,
If,foreach is better than loop,why to don't replace it with?
Same for YCMD(or zcmd) and OnPlayerCommandText,
Same for y_ini (or mysql/d_ini) and normal saving methode,
Same for sscanf and normal way(strtok bla bla bla),
Same for FCNPC and normal NPC,
Same for a lot..
And what about to add some includes/plugins directly to samp? Like whirlpool,new actors functions and alot more...
Reply
#2

Interesting topic.

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
If,foreach is better than loop,why to don't replace it with?
foreach takes more memory but is faster, for() is slower but takes less memory.

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
Same for YCMD(or zcmd) and OnPlayerCommandText,
Same for y_ini (or mysql/d_ini) and normal saving methode,
Same for sscanf and normal way(strtok bla bla bla),
Same for FCNPC and normal NPC,
Same for a lot..
There are many ways of writing code, and every scripter differs from another. It's up to the scripter to choose their favourite way of doing something.

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
And what about to add some includes/plugins directly to samp? Like whirlpool,new actors functions and alot more...
This would go here.
Reply
#3

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
Hi,so its just a question,
If,foreach is better than loop,why to don't replace it with?
Same for YCMD(or zcmd) and OnPlayerCommandText,
Same for y_ini (or mysql/d_ini) and normal saving methode,
Same for sscanf and normal way(strtok bla bla bla),
Same for FCNPC and normal NPC,
Same for a lot..
And what about to add some includes/plugins directly to samp? Like whirlpool,new actors functions and alot more...
It's up to you if you want to use deprecated functions or not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)