17.10.2010, 15:52
hi i have got this command it compiles fine but when i go ingame it doesn't work Here:
--------------------------------------------
}
dcmd(c,1,cmdtext);
return 1;
}
dcmd_c(playerid,params[])
{
if(IsPlayerClan(playerid))
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerClan(i))
{
new string[1024];
new name[256];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Clan Chat- %s: %s",name,params);
SendClientMessage(i,0x0033FFFF,string);
}
}
return 1;
------------------------------------------------
Please help me
--------------------------------------------
}
dcmd(c,1,cmdtext);
return 1;
}
dcmd_c(playerid,params[])
{
if(IsPlayerClan(playerid))
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerClan(i))
{
new string[1024];
new name[256];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"Clan Chat- %s: %s",name,params);
SendClientMessage(i,0x0033FFFF,string);
}
}
return 1;
------------------------------------------------
Please help me