10.05.2013, 17:50
Change this
to
The complete code:
pawn Код:
stock SiustiZinuteAdministratoriams(SPALVA,text[]) //SPALVA = that parametar can't be named the same as #define
pawn Код:
stock SiustiZinuteAdministratoriams(Color,text[]) // so change it to something else, i used "Color"
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);
}