27.02.2014, 02:59
alguem poderia mim da uma forзa to tentando cria um tipo de mensagem exp quando o admin entra no server mostra tal admin esta online ex: ADM: M4LV4D0 esta Online
//em OnPlayerConnect:
if(IsPlayerAdmin(playerid))//Troque IsPlayerAdmin pela sua variavel de admin....
{
new texto[64], admnome[MAX_PLAYER_NAME];
format(texto, sizeof(texto), "O Admin %s logou no servidor!", admnome);
SendClientMessageToAll(-1, texto);
}
//em OnPlayerDisconnect:
if(IsPlayerAdmin(playerid))//Troque IsPlayerAdmin pela sua variavel de admin....
{
new texto[64], admnome[MAX_PLAYER_NAME];
format(texto, sizeof(texto), "O Admin %s desconectou do servidor!", admnome);
SendClientMessageToAll(-1, texto);
}
pawn Код:
|
C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : error 012: invalid function call, not a valid address C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : warning 215: expression has no effect C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : error 001: expected token: ";", but found ")" C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : error 029: invalid expression, assumed zero C:\Users\NetiinhoO\Desktop\New Brasil RPG\gamemodes\new.pwn(2540) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.