SA-MP Forums Archive
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)
+--- Thread: Help (/showthread.php?tid=420414)



Help - DerickClark - 04.03.2013

How i add the colors
Код:
warning 203: symbol is never used: "Color"
Код:
CMD:label(playerid, params[])
{
    if (APlayerData[playerid][PlayerLevel] >= 7)
    {
	new string[160],Float: X, Float: Y, Float: Z,text[100],Color,distance;
	GetPlayerPos(playerid,  X,Y,Z);
	if(sscanf(params,"sd",text,distance)) return SendClientMessage(playerid,0xFB9204FF,"USAGE: /label [text][Color][distance]");
	Create3DTextLabel(text,0x03B8FCFF,X,Y,Z,distance,GetPlayerVirtualWorld(playerid));
	format(string,sizeof(string),"Create3DTextLabel(\"%s\",0x03B8FCFF,%f, %f, %f,%d,%d);",text,X,Y,Z,distance,GetPlayerVirtualWorld(playerid));
 	SaveToLog("labels",string);
 	}
	return 1;
}



Re: Help - CJ101 - 04.03.2013

replace

Код:
if(sscanf(params,"sd",text,distance)) return SendClientMessage(playerid,0xFB9204FF,"USAGE: /label [text][Color][distance]");
with

Код:
if(sscanf(params,"sdd",text,Color,distance)) return SendClientMessage(playerid,0xFB9204FF,"USAGE: /label [text][Color][distance]");



Re: Help - DerickClark - 04.03.2013

how i get the colors? like dis i type dis:
/label Test Yellow 50