[Ajuda] Como botar sу pra admin dono usar comando?
#1

Pessoal eu tinha conseguido corrigir o erro para nenhum player usa comando de admin numa FS de sistema de concessionбria, porйm agora, nem admin normal, dono, e nem RCON pode usar comando de admin da concessionбria, eu botei o seguinte para somente admins usarem os comandos admin da concessionбria:
Код:
if(pAdmin(playerid, 1)) return SendClientMessage(playerid, COLOR_RED, "Vocк nгo й um admin!");
Mas ai deu esse problema, nem player, nem admin normal ou RCON conseguia usar os comandos.

Entгo tentei trocar por isso:
Код:
if(PlayerInfo[playerid][pAdmin] >= 1341) return SendClientMessage(playerid, COLOR_RED, "Vocк nгo й um admin!");
Mas da esse problema ao compilar:
Код:
O Pawn Compiler library encontrou um problema e precisa ser fechado.
Alguйm pode me ajudar, eu sу quero que admins dono possam usar os comandos de admin, como por exemplo, o /adicionarconce

FS do sistema de concessionбria(traduzido por mim ): http://pastebin.com/aUpdCdh9
Reply
#2

Troque isto
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1341) return SendClientMessage(playerid, COLOR_RED, "Vocк nгo й um admin!");
Por Isto

pawn Код:
if ( PlayerInfo [ playerid ] [ pAdmin ] < 1341 )
    return SendClientMessage ( playerid, COLOR_RED, "[ ERRO ]: Vocк nгo pode usar este comando" ) ;
Reply
#3

Quote:
Originally Posted by iSmirnoff
Посмотреть сообщение
Troque isto
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 1341) return SendClientMessage(playerid, COLOR_RED, "Vocк nгo й um admin!");
Por Isto

pawn Код:
if ( PlayerInfo [ playerid ] [ pAdmin ] < 1341 )
    return SendClientMessage ( playerid, COLOR_RED, "[ ERRO ]: Vocк nгo pode usar este comando" ) ;
Botei mas deram os seguintes erros:

Код:
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(813) : warning 215: expression has no effect
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(884) : warning 205: redundant code: constant expression is zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1218) : warning 215: expression has no effect
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1232) : warning 205: redundant code: constant expression is zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1524) : error 017: undefined symbol "PlayerInfo"
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1524) : warning 215: expression has no effect
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1524) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1524) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1524) : fatal error 107: too many error messages on one line

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


4 Errors.
Depois botei a enum do PlayerInfo:

Код:
enum pInfo {
pAdmin
};
new PlayerInfo[MAX_PLAYERS][pInfo];
e deram esses erros:

Код:
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(59) : error 009: invalid array size (negative, zero or out of bounds)
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(814) : warning 215: expression has no effect
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(885) : warning 205: redundant code: constant expression is zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1219) : warning 215: expression has no effect
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1233) : warning 205: redundant code: constant expression is zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1525) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1535) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1560) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1574) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1633) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1635) : warning 217: loose indentation
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1653) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1676) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1700) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1715) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1728) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1751) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1766) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1781) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1969) : warning 205: redundant code: constant expression is zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1970) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1970 -- 1971) : warning 215: expression has no effect
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1971) : error 001: expected token: ";", but found "new"
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1971) : error 017: undefined symbol "vehicleid"
C:\DOCUME~1\Conta\Desktop\NATO~1\FILTER~1\CONCES~1.PWN(1971) : fatal error 107: too many error messages on one line

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


18 Errors.
Reply
#4

QUAAL EO LVL DE DN DO SEU GM ?
Reply
#5

Quote:
Originally Posted by MarcosRodrigo
Посмотреть сообщение
QUAAL EO LVL DE DN DO SEU GM ?
nгo entendi :S
Reply
#6

A pergunta foi:
Qual й o level de admin dono no seu gamemode?

DICA:

Caso tenha um outro comando que sу admin dono possa colocar, copie a funзгo.
Reply
#7

Qual a variбvel de Admin do seu GM
Reply
#8

Quote:
Originally Posted by iSmirnoff
Посмотреть сообщение
Qual a variбvel de Admin do seu GM
pAdmin
Reply
#9

Quote:
Originally Posted by davi54723
Посмотреть сообщение
A pergunta foi:
Qual й o level de admin dono no seu gamemode?

DICA:

Caso tenha um outro comando que sу admin dono possa colocar, copie a funзгo.
Entгo, й esse aqui:

Код:
if(PlayerInfo[playerid][pAdmin] >= 1341) return SendClientMessage(playerid, COLOR_RED, "Vocк nгo й um admin!");
Sу que da o erro:

Код:
O Pawn Compiler library encontrou um problema e precisa ser fechado.
Reply
#10

o lvl de dono e 1341 ? Manin coloca o lvl max que eu consigu arumar pra tu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)