Command problem?
#5

Brackets.
Код:
dcmd_fightstyle(playerid,params[])
{
 if(!params[0]) return SendClientMessage(playerid, red, "Example: /fightstyle [4 - 26]");

 new fightstyle = strval(params);

 for(new i = 0; i < MAX_PLAYERS; i++)
 {
  if(IsPlayerConnected(i))
  {
   SetPlayerFightingStyle(i, fightstyle);
  }
 }

 return 1;
}
Reply


Messages In This Thread
Command problem? - by [mad]MLK - 04.09.2009, 17:06
Re: Command problem? - by V1ceC1ty - 04.09.2009, 17:08
Re: Command problem? - by dugi - 04.09.2009, 17:09
Re: Command problem? - by [mad]MLK - 04.09.2009, 17:10
Re: Command problem? - by Balon - 04.09.2009, 17:50
Re: Command problem? - by Killerkid - 04.09.2009, 17:51
Re: Command problem? - by Balon - 04.09.2009, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)