SA-MP Forums Archive
clan tag colour help - 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: clan tag colour help (/showthread.php?tid=128574)



clan tag colour help - cssbart - 18.02.2010

i get this error when i compile
Код:
\\DOWNLOADS\server\filterscripts\clantag.pwn(14) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
here's the all script
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#include <a_samp>

	stock HasClanTag(playerid,const clantag[])
	{
	new clan_tag[10],lname[MAX_PLAYER_NAME];
	GetPlayerName(playerid,lname,sizeof lname);
	format(clan_tag,strlen(clantag)+2,"[%s]",clantag);
	return (strfind(lname,clan_tag)!=-1) ? (true) : (false);
	}
	if(HasClanTag(playerid,"[FREE]"))SetPlayerColor(playerid,0xAA3333);

public OnGameModeInit()
{
	return 1;
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
  
}



Re: clan tag colour help - BlackFoX - 18.02.2010

Код:
if(HasClanTag(playerid,"[FREE]"))SetPlayerColor(playerid,0xAA3333);
Move that to OnPlayerConnect ^^


Re: clan tag colour help - cssbart - 18.02.2010

thanks it fixed it


Re: clan tag colour help - cssbart - 18.02.2010

Went on server to try it and it did not work