SA-MP Forums Archive
script dont work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: script dont work (/showthread.php?tid=147426)



script dont work - iJumbo - 12.05.2010

Код:
  	if(text[0] == '#')
	{
    if(ClanLevel(playerid) == 10)
  	{
    
     new string[128];
     format(string,sizeof(string),"CLANCHAT %s: %s",PlayerName(playerid),text[1]);
	 SendMessageToClan(LIGHTBLUE,string);
	}
	else
	{
	return 0;
}
dont work



Re: script dont work - DJDhan - 12.05.2010

Try this :

Код:
if(text[0] == '#' && ClanLevel(playerid) == 10)
{
 new string[128]; 
 GetPlayerName(playerid,string,sizeof(string));
 format(string,sizeof(string),"ClanChat: %s: %s",string,text[1]);
 SendMessageToClan(green,string);
 return 0;
}