[Ajuda] Erro ao Compile
#1

galera quando vou dar compile aparece esses 4 erros
C:\Users\DIEGO\Downloads\IMPERIOALVIVERDE.pwn(249) : error 029: invalid expression, assumed zero
C:\Users\DIEGO\Downloads\IMPERIOALVIVERDE.pwn(249) : error 017: undefined symbol "cmd_comandosadmin"
C:\Users\DIEGO\Downloads\IMPERIOALVIVERDE.pwn(249) : error 029: invalid expression, assumed zero
C:\Users\DIEGO\Downloads\IMPERIOALVIVERDE.pwn(249) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
alguem pode me ajudar com esses erros?
linha 249: CMD:comandosadmin(playerid, params[])
Reply
#2

Poste o comando inteiro.
Reply
#3

Provavelmente o comando estб duplicado.
Reply
#4

olhe se no seu comando nгo ta faltando um retorn
TOPO DO GM TEM
#include <zcmd> ?
Код:
CMD:comandosadmin(playerid)
{
  if(...){
  return 1;
}
  return 1;
}
Reply
#5

1є Estб faltando definir a include zcmd.
PHP код:
//Todo do Gamemode
#include <zcmd> 
E, possivelmente, vocк estб usando parвmetros sem motivo.
PHP код:
CMD:comandos_admin(playeridparams[]) 
Reply
#6

Aqui o comando CMD:comandosadmin(playerid, params[])
{
if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para esse comando");
new dialogrande[1024];
format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"[LEVEL 1]: /asay, /jetpack, /tr, /ir, /vidat, /coletet, /dararma, /kick, /cnn, /pinfo, /a [chat admin]\n");
format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"[CONT.LVL 1]: /congelar, /descongelar, /tapa, /setskin, /trtodos\n");
format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"[LEVEL 3]: /ban, /supertapa, /cityadmin, /saircity\n");
format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"[LEVEL 4]: /setpm /settraf /setorg /setpux\n");
format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"[LEVEL 5]: /rtc, /bkick, /climas, /clima, /lerpms\n");
ShowPlayerDialog(playerid,666, DIALOG_STYLE_MSGBOX, "COMANDOS ADMIN", dialogrande, "OK", "");
return 1;
}
as includes ta normal .-.
Reply
#7

FAIL!
Код:
CMD:comandosadmin(playerid, params[])
{
	if(pAdmin[playerid][Level] < 1) return SendClientMessage(playerid, COR_ERRO, "ERRO: Vocк nгo tem permissгo para esse comando");
	new dialogrande[500];
	strcat(dialogrande, "[LEVEL 1]: /asay, /jetpack, /tr, /ir, /vidat, /coletet, /dararma, /kick, /cnn, /pinfo, /a [chat admin]\n");
	strcat(dialogrande, "[CONT.LVL 1]: /congelar, /descongelar, /tapa, /setskin, /trtodos\n");
	strcat(dialogrande, "[LEVEL 3]: /ban, /supertapa, /cityadmin, /saircity\n");
	strcat(dialogrande, "[LEVEL 4]: /setpm /settraf /setorg /setpux\n");
	strcat(dialogrande, "[LEVEL 5]: /rtc, /bkick, /climas, /clima, /lerpms\n");
	ShowPlayerDialog(playerid,666, DIALOG_STYLE_MSGBOX, "COMANDOS ADMIN", dialogrande, "OK", "");
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)