[DUV]RconLogged2
#1

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.
Reply
#2

Seria:
Ao Invйs:
MAX_PLAYERS
seria
MAX_PLAYERS_NAMES
Reply
#3

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 =)
Reply
#4

Nгo mudo nada
continuou os erros
Reply
#5

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

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)){
Reply
#7

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

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
Reply
#9

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

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] =/
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)