Problem
#2

Change this
pawn Код:
stock SiustiZinuteAdministratoriams(SPALVA,text[]) //SPALVA = that parametar can't be named the same as #define
to
pawn Код:
stock SiustiZinuteAdministratoriams(Color,text[]) // so change it to something else, i used "Color"
The complete code:
pawn Код:
#define SPALVA 0xFFFFFFAA

stock SiustiZinuteAdministratoriams(Color,text[])
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(PareigosDB[i][Administratorius] > 1)
            {
                SendClientMessage(i,Color,text);
            }
        }
    }
}

//-----------
if(listitem == 4)
{
    new A1ZINUTE[80]; // This string does not need to be this big, 80 should be enough.
    new Vardas[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Vardas,MAX_PLAYER_NAME);
    format(A1ZINUTE,sizeof A1ZINUTE,"{FFFFFF}Administratorius {FF8000}%s {99FF33}I {FFFFFF}lygio pasieme ginklus.",Vardas);
    SiustiZinuteAdministratoriams(SPALVA,A1ZINUTE);
}
Reply


Messages In This Thread
Problem - by EdvinasStudio - 10.05.2013, 16:48
Re: Problem - by Antonio144 - 10.05.2013, 17:50
Re: Problem - by EdvinasStudio - 11.05.2013, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)