Jump to content
  • 0

O intrebare cu chat-ul


LuciaN

Question

Cand folosesc functia ClearChatbox nu inteleg un singur lucru ce pun in paranteza adica ClearChatbox(playerid, ???) Sper ca intelegeti problema.

NU am postat in probleme godfather deoarece aceasta nu e o Problema godfather si nu am gasit aceasta chestie pe alt undeva prin sa-mp.ro

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Cand folosesc functia ClearChatbox nu inteleg un singur lucru ce pun in paranteza adica ClearChatbox(playerid, ???) Sper ca intelegeti problema.

NU am postat in probleme godfather deoarece aceasta nu e o Problema godfather si nu am gasit aceasta chestie pe alt undeva prin sa-mp.ro

Foloseste asta:

	if(strcmp(cmdtext, "/clearchat", true) == 0)
{
if(logged[playerid] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
SendClientMessageToAll(COLOR_SYSTEM, " ");
GameTextForAll("Chatul a fost sters!", 1000,1);
new PlayerName[30];
GetPlayerName(playerid, PlayerName, 30);
printf("[Command] %s a folosit /clearchat", PlayerName);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nu ai permisiunea sa folosesti aceasta comanda!");
return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_RED, "Trebuie sa fii logat ca sa folosesti aceasta comanda!");
}
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

NU la asta ma refer ma refer la asta

forward ClearChatbox(playerid, lines);

public ClearChatbox(playerid, lines)
{
	if (IsPlayerConnected(playerid))
	{
		for(new i=0; i<lines; i++)
		{
			SendClientMessage(playerid, COLOR_GREY, " ");
		}
	}
	return 1;
}

La asta ma refer

si ca sa fac nu stiu cum sa scriu la tutoriale dak vreau deci scriu ClearChatBox(playerid, si aici nu mai stiu ce sa mai scriu)

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

else if(TutTime[i] == 110)
			    {
			        ClearChatbox(i, 10);
			        SetPlayerInterior(i, 3);
			        SetPlayerPos(i, 330.6825,163.6688,1014.1875);
			        SetCameraBehindPlayer(i);
			        SetPlayerVirtualWorld(i, 0);
			        SendClientMessage(i, COLOR_YELLOW, ":: END OF TUTORIAL ::");
			        SendClientMessage(i, COLOR_WHITE, " ");
			        SendClientMessage(i, COLOR_YELLOW2, "There are a lot of places in Los Angeles, but you need to discover them on   your own.");
			        SendClientMessage(i, COLOR_YELLOW2, "Don't forget Role-Play rules, because non-rping causes warns and bans!");
			        SendClientMessage(i, COLOR_YELLOW2, "Greetings from: Los Angeles Roleplay admin team.");
			    }

De exmplu sfarsitul totorialului dupa cum vedeti este pus  ClearChatbox(i, 10);

de la ce vine acel 10 asta nu inteleg ?

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

NU la asta ma refer ma refer la asta

forward ClearChatbox(playerid, lines);

public ClearChatbox(playerid, lines)
{
	if (IsPlayerConnected(playerid))
	{
		for(new i=0; i<lines; i++)
		{
			SendClientMessage(playerid, COLOR_GREY, " ");
		}
	}
	return 1;
}

La asta ma refer

si ca sa fac nu stiu cum sa scriu la tutoriale dak vreau deci scriu ClearChatBox(playerid, si aici nu mai stiu ce sa mai scriu)

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.