SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

Reply
 
Thread Tools Display Modes
Old 13/06/2014, 03:04 PM   #11
RoW001
Little Clucker
 
Join Date: Jul 2012
Posts: 42
Reputation: 4
Default Re: Culori

Codul Hex returneaza o valoare de integer.
Deci ai putea face in felul urmator.
Code:
stock Color( ColorID )
{
	switch( ColorID )
	{
		case 1: return 0xFF0000FF;//Rosu
		case 2: return 0xC0FF00FF;//Verde deschis
		case 3: return 0xFFFFFFFF;//Alb
	}
	return -1;// Culoarea alba
}
Testeaza si revino cu raspuns.
RoW001 is offline   Reply With Quote
Old 13/06/2014, 09:06 PM   #12
jamal1992
Huge Clucker
 
Join Date: Nov 2010
Posts: 470
Reputation: 3
Default Re: Culori

nu am idee cum sa folosesc ce zici tu, fii mai explicit
jamal1992 is offline   Reply With Quote
Old 15/06/2014, 08:23 PM   #13
RaZVaN ^ xD
Huge Clucker
 
Join Date: Jul 2012
Posts: 298
Reputation: 14
Default Re: Culori

Ti-ai raspuns singur:
Quote:
Nu stiu daca ast putea face sa setez PlayerInfo[playerid][pColorChat] = 0xFFFFFFFF;
Iar la comanda chatului sa folosesc SendClientMessage(playerid,PlayerInfo[playerid][pColorChat],"text");
Daca se poate, trebuie definit in enum pinfo cu string adica pColorChat[10] ?


La pInfo adaugi:
Code:
pColorChat,
Faci sa se salveze acel pColorChat ( OnPlayer(Register/Login/Update) )

Culoarea o setezi astfel:
Code:
PlayerInfo [ playerid ] [ pColorChat ] = 0xFFFFFFFF; // desigur, poti schimba in ce vrei tu
Iar cand vrei sa trimiti un mesaj in functie de culoare:
Code:
SendClientMessage ( playerid, PlayerInfo [ playerid ] [ pColorChat ], "Salut" );
RaZVaN ^ xD is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Culori scris...-HELP! calinsocol Romānă/Romanian 5 24/12/2012 04:47 PM
216 Culori -Meniu XSR Romānă/Romanian 2 23/12/2012 07:17 AM
Program de culori IuLyAnBoSs Romānă/Romanian 3 20/05/2012 08:40 PM
Culori la nume Users Romānă/Romanian 3 15/08/2011 10:56 AM
Ajutori Culori VerSion Romānă/Romanian 5 11/05/2011 07:34 PM


All times are GMT. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.