clan tag colour help
#1

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)
{
  
}
Reply
#2

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

thanks it fixed it
Reply
#4

Went on server to try it and it did not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)