Jump to content
  • 0

Se scrie de 2 ori textul


mihai1122

Question

Problema intalnita (descriere):Se scrie de 2 ori textul.
Ero(area / rile) / warning-(ul / urile):Nu am.
Liniile de cod / sursa / script-ul(obligatoriu):

public OnPlayerText(playerid, text[])
{
    new string[60];
    if(P_Data[playerid][pAdmin] >= 1)
    {
        format(string, sizeof(string), "{2641FE}%s {FFFFFF}: %s", GetName(playerid), text); //0x990000FF

        SetPlayerChatBubble(playerid, text, -1, 30.0, 10000);

        ProxDetector(20.0, playerid, string,COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
 	}
 	return 1;
}


Imagini / Video (optional): http://imgur.com/uxro0cs
Ati incercat sa rezolvati singur?: Da, am incercat sa fac si cu else if ..... pAdmin ==1  , si tot nu merge..... tot se scrie de 2 ori , si la player normal (admin 0 ), si la admin 1+

Edited by mihai1122

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1
public OnPlayerText(playerid, text[])
{
    new string[60];
    if(P_Data[playerid][pAdmin] >= 1)
    {
        format(string, sizeof(string), "{2641FE}%s {FFFFFF}: %s", GetName(playerid), text); //0x990000FF

        SetPlayerChatBubble(playerid, text, -1, 30.0, 10000);

        ProxDetector(20.0, playerid, string,COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
 	}
 	return 0;
}

Mai exact, trebuie sa pui ultimul 'return' ca fiind fals (0).

  • Upvote 1

242086.png

Link to comment
Share on other sites

  • 0

Multumesc, Known.

 

@Alberto. , da aia e toata linia ca am pornit un gamemode de la 0.

 

<a href="http://www.game-state.eu/89.33.242.212:7777/"><img src="http://www.game-state.eu/89.33.242.212:7777/350x20_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

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.