Jump to content
  • 0

ID dupa nume, "exemplu: [RIZ]Kira (ID:1): salut"


[.E.m.O.]K1DDU

Question

Salut, imi poate spune cineva cum pot sa pun ID de la un jucator cand scrie ceva pe chat ca la nume dupa nume sa ii arate ID

Exemplu:

"[RIZ]Kira (ID:1): salut"

Multumesc anticipat


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

stuntman-=!!" post="67600" timestamp="1303293576"]

La OnPlayerConnect schimbi return 1; de la final in return 0; si pui asta putin mai deasupra:

[pawn]new messagetext[128];

format(messagetext, 128, "(ID: %d): %s", playerid, text);

SendPlayerMessageToAll(playerid, messagetext);[/pawn]

OnPlayerText *

Link to comment
Share on other sites

Guest PlayON

stuntman-=!!" post="67600" timestamp="1303293576"]

La OnPlayerConnect schimbi return 1; de la final in return 0; si pui asta putin mai deasupra:

[pawn]new messagetext[128];

format(messagetext, 128, "(ID: %d): %s", playerid, text);

SendPlayerMessageToAll(playerid, messagetext);[/pawn]

Mai nou vorbim prin OnPlayerConnect =)))

Link to comment
Share on other sites

Am facut asa dar imi da eroarea asta

D:\Desktop\RIZ.pwn(765) : error 010: invalid function or declaration

si fix la linia unde am schimbat 1 in 0

Ce fac?


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

E.E gata am reusit am sters un } de asta si o mers :D iinainte de return 0 erau 4 } am sters una doar asa sa vad ce se intampla :D si o mers nu mai da eroarea

.

Va multumesc pentru ajutor

EDIT:

AM BAGAT GM IN SERVER, SI CAND CINEVA SCRIE SAU EU SCRIU NU APARE

DE CE? CE SA INTAMPLAT?

DACA AVETI NEVOIE SA VEDETI ONPLAYERTEXT ESTE ACESTA:

[pawn]public OnPlayerText(playerid,text[])

{

    SetPlayerChatBubble(playerid, text, 0xFFFFFFAA, 100.0, 10000);

    if(isafk[playerid] == 1)

    {

    SystemMessage(playerid, "You can not speak for you in BRB or AFK.");

    }

    if (!strcmp(text, reactionstr, false))

    {

    if (reactioninprog == 2) ReactionWin(playerid);

    if (reactioninprog == 1)

    {

    if (reactionwinnerid == playerid)

    {

    SendClientMessage(playerid, 0x247C1BFF, "You've already won!.");

    }

    else

    {

    SendClientMessage(playerid, 0x247C1BFF, "You are too slow!.");

    {

    new messagetext[128];

    format(messagetext, 128, "(ID: %d): %s", playerid, text);

    SendPlayerMessageToAll(playerid, messagetext);

    }

    }

    }

    }

    return 0;

}[/pawn]


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

E.E gata am reusit am sters un } de asta si o mers :D iinainte de return 0 erau 4 } am sters una doar asa sa vad ce se intampla :D si o mers nu mai da eroarea

.

Va multumesc pentru ajutor

EDIT:

AM BAGAT GM IN SERVER, SI CAND CINEVA SCRIE SAU EU SCRIU NU APARE

DE CE? CE SA INTAMPLAT?

DACA AVETI NEVOIE SA VEDETI ONPLAYERTEXT ESTE ACESTA:

[pawn]public OnPlayerText(playerid,text[])

{

    SetPlayerChatBubble(playerid, text, 0xFFFFFFAA, 100.0, 10000);

    if(isafk[playerid] == 1)

    {

    SystemMessage(playerid, "You can not speak for you in BRB or AFK.");

    }

    if (!strcmp(text, reactionstr, false))

    {

    if (reactioninprog == 2) ReactionWin(playerid);

    if (reactioninprog == 1)

    {

    if (reactionwinnerid == playerid)

    {

    SendClientMessage(playerid, 0x247C1BFF, "You've already won!.");

    }

    else

    {

    SendClientMessage(playerid, 0x247C1BFF, "You are too slow!.");

    {

    new messagetext[128];

    format(messagetext, 128, "(ID: %d): %s", playerid, text);

    SendPlayerMessageToAll(playerid, messagetext);

    }

    }

    }

    }

    return 0;

}[/pawn]

OMG, unde ai adaugat :))

Asa e bine:

public OnPlayerText(playerid,text[])
{
	SetPlayerChatBubble(playerid, text, 0xFFFFFFAA, 100.0, 10000);
	if(isafk[playerid] == 1)
	{
		SystemMessage(playerid, "You can not speak for you in BRB or AFK.");
	}
	if (!strcmp(text, reactionstr, false))
	{
		if (reactioninprog == 2) ReactionWin(playerid);
		if (reactioninprog == 1)
		{
			if (reactionwinnerid == playerid) { SendClientMessage(playerid, 0x247C1BFF, "You've already won!."); }
			else { SendClientMessage(playerid, 0x247C1BFF, "You are too slow!."); }
		}
	}
	new messagetext[128];
	format(messagetext, 128, "(ID: %d): %s", playerid, text);
	SendPlayerMessageToAll(playerid, messagetext);
	return 0;
}

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.