Problema
#3

se pare ca nu folosesti dcmd deci probabil, trebuie ceva de genul:

Код:
	if(strcmp(cmd, "/grove", true) == 0 || strcmp(cmd, "/g", true) == 0)
    {
 	if(gTeam[playerid] != TEAM_GROVE) return SendClientMessage(playerid, 0xAFAFAFAA, "You can't use this command !");
 				GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
  if(!strlen(result)) return SendClientMessage(playerid, 0xAFAFAFAA, "USAGE: /g(roove)");
  new playername[MAX_PLAYER_NAME], string[128];
  GetPlayerName(playerid, playername, sizeof(playername));
	format(string, sizeof(string), "* *Groove [%s]: %s,", playername, result);
 	for(new i = 0; i < MAX_PLAYERS; i++) {
 		if(gTeam[i] == TEAM_GROVE){
 		SendClientMessage(i, COLOR_YELLOW, string);
 		}
 	}
	return 1;
}
PS: n-am testat, dar ar trebui sa mearga
Reply


Messages In This Thread
Problema - by Hor1z0n - 09.11.2009, 19:04
Re: Problema - by Farsek - 10.11.2009, 03:12
Re: Problema - by xxmitsu - 10.11.2009, 10:58
Problema - by [NoV]LaZ - 10.11.2009, 14:26
Re: Problema - by _V1rTu4L_ - 11.11.2009, 12:29
Re: Problema - by MJ! - 28.11.2009, 21:03
Re: Problema - by [BFN]Stunter - 29.11.2009, 07:19

Forum Jump:


Users browsing this thread: 1 Guest(s)