18.08.2015, 19:19
sup guys I cant configure out this
if player have [GC] tag in name his chat color change
but I want same color on name if possible in one server I saw a clan [PuN]Donny_
with 3 colors in tag
here is my codes
Those codes I added onplayerspawn
ERROR
if player have [GC] tag in name his chat color change
but I want same color on name if possible in one server I saw a clan [PuN]Donny_
with 3 colors in tag
here is my codes
pawn Код:
CheckTAG(playerid)
{
new Nick[MAX_PLAYER_NAME + 1],string[55];
GetPlayerName(playerid,Nick,sizeof(Nick));
if(!strcmp(Nick,"[GC]",true,4))
{
string = "{FF0000}[G{FFFF00}C]{33CCFF}";
strcat(string, Nick[4]);
return string;
}
strcat(string,Nick);
return string;
}
public OnPlayerText(playerid,text[])
{
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"%s {00FFF0}: %s",CheckTAG(playerid),text); SendClientMessageToAll(GetPlayerColor(playerid),string);
return 1;
}
pawn Код:
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"%s {00FFF0}: %s",CheckTAG(playerid)); SetPlayerColor(playerid,string); //Line 49
Код:
C:\Users\CraTzy\Desktop\Texture-Studio-master\gamemodes\bare.pwn(49) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.