12.07.2014, 16:36
I always wondered what is more efficiant
or with 1 string only
Код:
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; }
Код:
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; }