SA-MP Forums Archive
[DUV]RconLogged2 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [DUV]RconLogged2 (/showthread.php?tid=155562)



[DUV]RconLogged2 - Gangster_ - 19.06.2010

Entгo eu estou querendo fazer um fs de adm invez de usar IsPlayerAdmin
vou usar RconLogged2

entгo eu fiz um cmd para o adm logar .
pawn Код:
new ChecarNick[MAX_PLAYERS];
pawn Код:
if(strcmp(cmd, "/admlogin", true) == 0)
  {
  if((ChecarNick("[BKs]Roger_",PlayerName(playerid) == 1) || IsPlayerAdmin(playerid) || RconLogged2(playerid);
    SendClientMessageToAll(playerid, 0x00FF00AA, "%s Admin Logado!");
    return 1;
  }
Mas da uns erros


Compilando Admin.pwn...
C:\Users\glauco\Desktop\Nova Pasta\Desktop\Admin.pwn(116) : error 012: invalid function call, not a valid address

C:\Users\glauco\Desktop\Nova Pasta\Desktop\Admin.pwn(116) : error 029: invalid expression, assumed zero
C:\Users\glauco\Desktop\Nova Pasta\Desktop\Admin.pwn(116) : error 012: invalid function call, not a valid address
C:\Users\glauco\Desktop\Nova Pasta\Desktop\]Admin.pwn(116) : fatal error 107: too many error messages on one line

Compilation aborted.
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: [DUV]RconLogged2 - ipsBruno - 19.06.2010

Seria:
Ao Invйs:
MAX_PLAYERS
seria
MAX_PLAYERS_NAMES


Re: [DUV]RconLogged2 - PoderFx - 19.06.2010

Quote:
Originally Posted by DraKoNeoN
Seria:
Ao Invйs:
MAX_PLAYERS
seria
MAX_PLAYERS_NAMES
MAX_PLAYER_NAME e

pawn Код:
if(strcmp(cmd, "/admlogin", true) == 0)
  {
  if((ChecarNick("[BKs]Roger_",PlayerName(playerid) == 1) || IsPlayerAdmin(playerid) || RconLogged2(playerid);
    SendClientMessageToAll(playerid, 0x00FF00AA, "%s Admin Logado!");
    return 1;
  }
nгo tem sentido >.> ChecarNick nгo tem funзгo nisso... vamos mudar isso... E tem uns erros

pawn Код:
if(strcmp(cmd, "/admlogin", true) == 0)
  {
  if(strcmp("[BKs]Roger_", PlayerName(playerid), true) == 0 || IsPlayerAdmin(playerid) || RconLogged2(playerid)){
    SendClientMessageToAll(playerid, 0x00FF00AA, "%s Admin Logado!");
    return 1;
   }
  }
Obs: Nгo recomendo usar o negocio de nome porque pessoas podem entrar com seu nome e virar admin =)


Re: [DUV]RconLogged2 - Gangster_ - 19.06.2010

Nгo mudo nada
continuou os erros


Re: [DUV]RconLogged2 - xolp26 - 19.06.2010

Quote:
Originally Posted by Gangster_
Nгo mudo nada
continuou os erros
poste os novos erros aqui


Re: [DUV]RconLogged2 - Gangster_ - 19.06.2010

C:\Users\glauco\Desktop\Nova Pasta\Desktop\Admin.pwn(119) : error 012: invalid function call, not a valid address
C:\Users\glauco\Desktop\Nova Pasta\Desktop\Admin.pwn(119) : error 029: invalid expression, assumed zero
C:\Users\glauco\Desktop\Nova Pasta\Desktop\Admin.pwn(119) : error 012: invalid function call, not a valid address
C:\Users\glauco\Desktop\Nova Pasta\Desktop\Admin.pwn(119) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

linha :
pawn Код:
if((ChecarNick("[BKs]Roger_", PlayerName(playerid), true) == 0 || IsPlayerAdmin(playerid) || RconLogged2(playerid)){



Re: [DUV]RconLogged2 - SuB_ZeRo0_ - 19.06.2010

pawn Код:
if((!strcmp("[BKs]Roger_", PlayerName(playerid), true)) || IsPlayerAdmin(playerid) || RconLogged2(playerid)){
Nгo existe ChecarNick. '-'


Re: [DUV]RconLogged2 - Gangster_ - 19.06.2010

Quote:
Originally Posted by SuB_ZeRo0_
pawn Код:
if((!strcmp("[BKs]Roger_", PlayerName(playerid), true)) || IsPlayerAdmin(playerid) || RconLogged2(playerid)){
Nгo existe ChecarNick. '-'
Amigo nao adianto nada continuou os erros



Re: [DUV]RconLogged2 - russo666 - 19.06.2010

pawn Код:
if(!strcmp("[BKs]Roger_", PlayerName(playerid), true) || IsPlayerAdmin(playerid) || RconLogged2(playerid)){
O checarnick ele podia ter definido a funзгo strcmp para isso...


Re: [DUV]RconLogged2 - Gangster_ - 19.06.2010

Quote:
Originally Posted by russooooo
pawn Код:
if(!strcmp("[BKs]Roger_", PlayerName(playerid), true) || IsPlayerAdmin(playerid) || RconLogged2(playerid)){
O checarnick ele podia ter definido a funзгo strcmp para isso...
nao adianto nada [2] =/