Whats more efficiant
#1

I always wondered what is more efficiant

Код:
CMD:kick(playerid,params[],help)
{
	new reason[64],stringA[128],stringB[128];
	//sscanf check etc...
	format(stringA,sizeof(stringA), "%s have kicked %s",Name(playerid),Name(otherplayer));
	SendClientMessageToAll(COLOR,stringA);
	format(stringB,sizeof(stringB), "You have been kicked by %s",Name(playerid));
	SendClientMessage(otherplayerid,COLOR,stringB);
	return 1;
}
or with 1 string only


Код:
CMD:kick(playerid,params[],help)
{
	new reason[64],string[128];
	//sscanf check etc...
	format(string,sizeof(string), "%s have kicked %s",Name(playerid),Name(otherplayer));
	SendClientMessageToAll(COLOR,string);
	format(string,sizeof(string), "You have been kicked by %s",Name(playerid));
	SendClientMessage(otherplayerid,COLOR,string);
	return 1;
}
Reply
#2

ofc with 1 string
reduces the mem usage
Reply
#3

your machine doesn't care..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)