25.06.2016, 08:18
I believe you meant millisecond(1/1000), not microsecond (1/1000000).
Go through the reply again if you did not understand. I have told this 100 times to many people already. I can prove that DCMD is as fast as ZCMD if you allow me to add 100 SendClientMessage calls inside the command.
|
And still you are wrong on this point of argument. If you see all the tests have similar code, and it has never been said that SendClientMessage/print will have greater delay in case of iZCMD and less in Pawn.CMD. For satisfaction, you can take average of the tests and compare.
And moreover in the end, you just don't use commands empty, so why not test it in a better way. |
I don't see why everyone's arguing about the speedtest, we all know plugins all alot faster than pawn.
|
Originally Posted by Yashas
Of course, it is impossible for ZCMD/iZCMD to beat PAWN.Cmd for obvious reasons. PAWN.Cmd is a plugin whereas the rest are PAWN based processors.
That wasn't the point of the discussion. I was aware of that fact all the time. When I saw the disparity in the speed measured by your test in the front page, I suspected a flaw to be present in the speed test which is why I asked if I could have a look at it. |
Awwww, If I remember correctly, I shouted at you once in your foreach include (where you showed that your foreach is as fast as y_iterate) for having prints inside the foreach when you were comparing the speeds.
|
Should have quoted that in case when i am pretty sure i made that piece of code just casually, without any speed tests mentioned in it. I wonder where i said it was fastest
Speed on this forums is an overkill. And i won't argue with you again. I am pretty happy with my explanations, you enjoy yours. Is that really bothering you ? |
native PC_IsCommand( source[ ], command[ ], bool:alias );
public OnPlayerCommandReceived( ... )
{
if( PC_IsCommand( cmd, "test", false ) ) return 0;
return 1;
}
native PC_SpeltCommand( playerid, destination[ ], maxlength = sizeof destination );
alias:test( "hello", "there" );
CMD:test( playerid, params[ ] )
{
new string[ 6 ];
PC_SpeltCommand( playerid, string );
printf( "%d wrote '%s' to call the /test command !", playerid, string );
// Possible values: hello, there, test.
return 1;
}
native PC_CommandsCount( );
native PC_AliasesCount( );
native PC_CommandAliasesCount( cmd[ ] );
#if defined OnPlayerCommandReceived
forward OnPlayerCommandReceived(playerid, cmd[], params[], flags);
#endif
#include <a_samp>
//Include
#include <Pawn.CMD>
#include <streamer>
#include <sscanf2>
#include <YSI\y_ini>
I had problem with these lines:
PHP код:
Pawn.CMD.inc(29) : error 025: function heading differs from prototype Edit: Pawn CMD seems to not work at all for me. Tried 1 filterscript, 2 gamemodes. The current includes: PHP код:
|