format(Strvb,sizeof(Strvb),"ANT CHEAT:%s[ID %d] pareзe estб usando sob*it /tv nele rapido!",Nomevb);
SendClientMessageToAll(0x91FF00AA, Strvb);
SetCameraBehindPlayer (playerid);
format(Strvb,sizeof(Strvb),"Xiter");}}
return 1;}
public ABroadCast(COLOR,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pAdmin] >= level)
{
SendClientMessage(i, COLOR, string);
printf("%s", string);
}
}
}
return 1;
}
format(Strvb,sizeof(Strvb),"ANT CHEAT:%s[ID %d] pareзe estб usando sob*it /tv nele rapido!",Nomevb,"A variavel que pega o id do cara aqui");
ABroadCast("UMA COR A SUAESCOLHA AQUI",Strvb,1);
SetCameraBehindPlayer (playerid);
}}
return 1;}
if(!IsPlayerAdmin(playerid))
if(PlayerInfo[i][pAdmin] > 1)
format(Strvb,sizeof(Strvb),"ANT CHEAT:%s[ID %d] pareзe estб usando ****** /tv nele rapido!",Nomevb, playerid);
SendClientMessageToAll(0x91FF00AA, Strvb);
SetCameraBehindPlayer (playerid);
format(Strvb,sizeof(Strvb),"Xiter");}}
return 1;}
public ABroadCast(COR_RED,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pAdmin] >= 1)
{
SendClientMessage(i, COR_RED, string);
printf("%s", string);
}
}
}
return 1;
}
C:\Users\Twulin\Desktop\Serve\pawno\R0beit.pwn(4) : warning: 235: public function lacks forward declaration (symbol "ABroadCast")
C:\Users\Twulin\Desktop\Serve\pawno\R0beit.pwn(4) : error: 010: invalid function or declaration
C:\Users\Twulin\Desktop\Serve\pawno\R0beit.pwn(10) : error: 017: undefined symbol "PlayerInfo"
C:\Users\Twulin\Desktop\Serve\pawno\R0beit.pwn(10) : warning: 215: expression has no effect
C:\Users\Twulin\Desktop\Serve\pawno\R0beit.pwn(10) : error: 001: expected token: ";", but found "]"
pawn Код:
|
o Seu deu certo.. mais tirei o if(PlayerInfo[i][pAdmin] > 1) pq tava dando erro..
Como faзo se tiver adm com ****** nгo aparacer a menssagem? |
C:\Users\Twulin\Desktop\Serve\filterscripts\******_teste.pwn(16) : error: 017: undefined symbol "PlayerInfo"
C:\Users\Twulin\Desktop\Serve\filterscripts\******_teste.pwn(16) : error: 017: undefined symbol "i"
C:\Users\Twulin\Desktop\Serve\filterscripts\******_teste.pwn(16) : error fatal: 107: too many error messages on one line
C:\Users\Twulin\Desktop\Serve\filterscripts\******_teste.pwn(16) : error: 029: invalid expression, assumed zero