adminjoinedserver -
engelguilherme - 20.03.2014
eae galera estou tentando colocar para quando um admin entrar no servidor ao invйs de aparecer o player esta entrando aparecer o administrador esta entrando mas nao ta dando certo ainda ta aparecendo o player
pawn Код:
if(APlayerData[playerid][PlayerLevel] >= 0)
{
format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
}
if(APlayerData[playerid][PlayerLevel] >= 2)
{
format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewAdminMsg);
}
Re: adminjoinedserver -
Delete_ - 20.03.2014
pawn Код:
if(APlayerData[playerid][PlayerLevel] = 0)
{
format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
}
if(APlayerData[playerid][PlayerLevel] >= 1)
{
format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewAdminMsg);
}
Re: adminjoinedserver -
engelguilherme - 20.03.2014
Quote:
Originally Posted by Delete_
pawn Код:
if(APlayerData[playerid][PlayerLevel] = 0) { format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid); SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg); } if(APlayerData[playerid][PlayerLevel] >= 1) { format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid); SendClientMessageToAll(0xFFFFFFFF, NewAdminMsg); }
|
pelo que eu vi vc so mudou para level 1 mas eu tentei colocar seu code mas agora nem aparece quando player entrou e nem quando admin entrou '-'
Re: adminjoinedserver -
DrTHE - 20.03.2014
Tenta trocar NewAdminMsg por NewPlayerMsg no ultimo SendClientMessageToAll.
~Editado:
Tente usar isso:
pawn Код:
if(APlayerData[playerid][PlayerLevel] < 1) {
format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
} else if(APlayerData[playerid][PlayerLevel] >= 1) {
format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
}
Re: adminjoinedserver -
engelguilherme - 20.03.2014
Quote:
Originally Posted by DrTHE
Tenta trocar NewAdminMsg por NewPlayerMsg no ultimo SendClientMessageToAll.
~Editado:
Tente usar isso:
pawn Код:
if(APlayerData[playerid][PlayerLevel] < 1) { format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid); SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg); } else if(APlayerData[playerid][PlayerLevel] >= 1) { format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid); SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg); }
|
ainda aparece jogador e deu um aviso agr
Код:
C:\Users\Rogerio\Desktop\dvlfuhvkfebil\Brasil Hard Trucker-Official\gamemodes\BHT.pwn(364) : warning: 204: symbol is assigned a value that is never used: "NewAdminMsg"
Re: adminjoinedserver -
PaulMcCartney - 20.03.2014
Essa warning diz que "NewAdminMsg" nгo й usada, basta apagar. (deixando ou apagando darб na mesma, nгo afetarб em nada)
E por acaso, vocк diz que, mesmo quando й um admin, aparece: O jogador Joao entrou no servidor?
Nгo entendi exatamente oque disse
Re: adminjoinedserver -
engelguilherme - 20.03.2014
o warning resolvi pela ajuda do paulmccartney mas ainda quando entra aparece o jogador esta entrando '-'
Re: adminjoinedserver -
GabrielRibeiro - 21.03.2014
Quote:
Originally Posted by engelguilherme
eae galera estou tentando colocar para quando um admin entrar no servidor ao invйs de aparecer o player esta entrando aparecer o administrador esta entrando mas nao ta dando certo ainda ta aparecendo o player
pawn Код:
if(APlayerData[playerid][PlayerLevel] >= 0) { format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid); SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg); } if(APlayerData[playerid][PlayerLevel] >= 2) { format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid); SendClientMessageToAll(0xFFFFFFFF, NewAdminMsg); }
|
pawn Код:
if(APlayerData[playerid][PlayerLevel] <= 0)
{
format(NewPlayerMsg, 128, "%s[ID:%d] ESTБ ONLINE NA FORUM SAMP.", Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
}
if(APlayerData[playerid][PlayerLevel] >= 1)
{
format(NewPlayerMsg, 128, "O ADMIN %s[ID:%d] ESTБ ONLINE NA FORUM SAMP.", Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
}
Nгo sei se vocк pode mais se pudar +rep
Re: adminjoinedserver -
ProKillerpa - 21.03.2014
Seu cуdigo nгo faz sentido. Apenas use a Lуgica dos operadores.
PHP код:
if(APlayerData[playerid][PlayerLevel] <= 1)
{
format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
}
if(APlayerData[playerid][PlayerLevel] >= 2)
{
format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewAdminMsg);
}
Re: adminjoinedserver -
GabrielRibeiro - 21.03.2014
Quote:
Originally Posted by ProKillerpa
Seu cуdigo nгo faz sentido. Apenas use a Lуgica dos operadores.
PHP код:
if(APlayerData[playerid][PlayerLevel] <= 1)
{
format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);
}
if(APlayerData[playerid][PlayerLevel] >= 2)
{
format(NewPlayerMsg, 128, TXT_AdminJoinedServer, Name, playerid);
SendClientMessageToAll(0xFFFFFFFF, NewAdminMsg);
}
|
Certeza do que estбs dizendo?