SA-MP Forums Archive
[Ajuda] 26 Erros As chaves estгo oks! - 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: [Ajuda] 26 Erros As chaves estгo oks! (/showthread.php?tid=410664)



26 Erros As chaves estгo oks! - brayon1997 - 26.01.2013

Pessoal no meu gm quando vou compilalo aconteзe isto!

C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(32) : error 070: rational number support was not enabled
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(63) : error 070: rational number support was not enabled
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(127) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(149) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(149) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(151) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(153) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(155) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(156) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(157) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(162) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(163) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(164) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(165) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(166) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(167) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(16 : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(169) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(170) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(171) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(172) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(173) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(174) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(176) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(177) : error 004: function "SendPlayerFormattedText" is not implemented
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(17 : error 004: function "SendPlayerFormattedText" is not implemented

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


26 Errors.

A histуria й a seguinte!
Quando tava editando o maper tipo deletando objetos ou etc n tinha feito backup do meu GM e fiz uma merda todo meu gm foi substituidos para 5 objetos a mais! tenso nй? o ke eu fiz usei o descompiler! e veio com + de 50 erros! consegui com outros gm de lvdm consertar grande parte do GM '-', agora sempre da esses erros e as chaves parenteses estгo ok! verifiquei as includes havia erros eu os corrigi pelo pawno e pega -.- nгo sei se fiz burrada kk! mas alguem pode me ajudar?

a parte inicial dos comandos ta assim '-'

Linha : 140 atй 158
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmd[256];
new giveplayerid, moneys, idx;

cmd = strtok(cmdtext, idx);

if(strcmp(cmdtext, "/ajuda", true) == 0)
{
SendPlayerFormattedText(playerid, "Las Venturas DM.", 0);

SendPlayerFormattedText(playerid, "/report [ID] [Motivo] para reportar alguem!", 0);
SendPlayerFormattedText(playerid, "/Comandos : Para Ver os comandos!", 0);
return 1;
}

tem isso e os comandos que pus ta ok jб verifiquei!!! alguem sabe pq o erro? as includes? ajuda HELP FAST!!! muita gente tem esse erro n sei pq mas o problema e sempre diferente! Alguem ajuda pf rapido!


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - Mteck - 26.01.2013

Usa [*pawn] [*/pawn] sem os **
Revise a ъltima modificaзгo feita no GameMode.


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - silenthill - 26.01.2013

Com certeza sгo chaves, como o mteck disse sу vc analizando a sua ultima modificaзгo p/ identificar o erro de chaves, caso o contrario vai ter trabalho em analizar o gm todin


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - brayon1997 - 26.01.2013

este e o server log quando vo ligar com o GM Tes


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[11:11:24]
[11:11:24] Server Plugins
[11:11:24] --------------
[11:11:24] Loading plugin: plugin1
[11:11:24]

*** plugin1 Plugin v2.6 by credits loaded ***

[11:11:24] Loaded.
[11:11:24] Loaded 1 plugins.

[11:11:24] I couldn't load any gamemode scripts. Please verify your server.cfg
[11:11:24] It needs a gamemode0 line at the very least.

E este й o server Log quando vou ligar com o GM que estб em AMX! o que eu perdi '-'

Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[11:17:29]
[11:17:29] Server Plugins
[11:17:29] --------------
[11:17:29] Loading plugin: Plugin
[11:17:29]

*** Plugin1 Plugin v2.6 by credits loaded ***

[11:17:29] Loaded.
[11:17:29] Loaded 1 plugins.

[11:17:29]
[11:17:29] Filterscripts
[11:17:29] ---------------
[11:17:29] Loading filterscript 'FS0.amx'...
[11:17:29]
-----------------------------------------
[11:17:29] FS0 System v1.0 / Credits - Loaded -
[11:17:29] -----------------------------------------

[11:17:29] Loading filterscript 'SmokeAdmin.amx'...
[11:17:29]





[11:17:29] ------------------------------------
[11:17:29] Rodando FS FSSmokeAdmin
[11:17:29] Feito por Smokexd
[11:17:29] ------------------------------------
[11:17:29]





[11:17:29] Loading filterscript 'FS1.amx'...
[11:17:29] Loading filterscript 'FS2.amx'...
[11:17:29] Loading filterscript 'FS3.amx'...
[11:17:29] Loading filterscript 'FS4.amx'...
[11:17:29]

--------------------------------------
[11:17:29] Sistema FS By: credits
[11:17:29] - Nгo retire os crйditos -
[11:17:29] --------------------------------------

[11:17:29] Loading filterscript 'fs5.amx'...
[11:17:29] Loading filterscript 'fs6.amx'...
[11:17:29] Loading filterscript 'fs7.amx'...
[11:17:29] Loading filterscript 'fs8.amx'...
[11:17:29]
-- FS8 loaded.

[11:17:29] Loading filterscript 'fs9.amx'...
[11:17:29]
--FS9 loaded.

[11:17:29] Loading filterscript 'fs10.amx'...
[11:17:29]
*********************
* FS10 loaded *
[11:17:29] * By credits *
*********************
[11:17:29] * Version: 0.5d *
*********************
[11:17:29] * -- LOADED *
*********************

[11:17:29] Loaded 12 filterscripts.

[11:17:29]
-------------------------------------
[11:17:29] Las Venturas DeathMatch/RP/FR [LVDM]

[11:17:29] www.lasventurasdm.blogspot.com
[11:17:29] By [LVDM]Smooke
[11:17:29] -----------------------------------

[11:17:29] Number of vehicle models: 147
[11:17:30] --- Server Shutting Down.
[11:17:30]
Sytem FS1 descarregado
[11:17:30]
*********************
* FS10 *
[11:17:30] * -- SHUTDOWN *
*********************

[11:17:30]

*** Plugin1 Plugin v2.6 by credits unloaded ***


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - brayon1997 - 26.01.2013

Nгo entendi '-' pawno o ke?? onde faz isso entendi n!


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - Mteck - 26.01.2013

[*pawn] [*/pawn] sem os **
pawn Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, (C)2005-2012 SA-MP Team

[11:11:24]
[11:11:24] Server Plugins
[11:11:24] --------------
[11:11:24] Loading plugin: plugin1
[11:11:24]

*** plugin1 Plugin v2.6 by credits loaded ***

[11:11:24] Loaded.
[11:11:24] Loaded 1 plugins.

[11:11:24] I couldn't load any gamemode scripts. Please verify your server.cfg
[11:11:24] It needs a gamemode0 line at the very least.

E este й o server Log quando vou ligar com o GM que estб em AMX! o que eu perdi '
-'

Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[11:17:29]
[11:17:29] Server Plugins
[11:17:29] --------------
[11:17:29] Loading plugin: Plugin
[11:17:29]

*** Plugin1 Plugin v2.6 by credits loaded ***

[11:17:29] Loaded.
[11:17:29] Loaded 1 plugins.

[11:17:29]
[11:17:29] Filterscripts
[11:17:29] ---------------
[11:17:29] Loading filterscript '
FS0.amx'...
[11:17:29]
-----------------------------------------
[11:17:29] FS0 System v1.0 / Credits - Loaded -
[11:17:29] -----------------------------------------

[11:17:29] Loading filterscript '
SmokeAdmin.amx'...
[11:17:29]





[11:17:29] ------------------------------------
[11:17:29] Rodando FS FSSmokeAdmin
[11:17:29] Feito por Smokexd
[11:17:29] ------------------------------------
[11:17:29]





[11:17:29] Loading filterscript '
FS1.amx'...
[11:17:29] Loading filterscript '
FS2.amx'...
[11:17:29] Loading filterscript '
FS3.amx'...
[11:17:29] Loading filterscript '
FS4.amx'...
[11:17:29]

--------------------------------------
[11:17:29] Sistema FS By: credits
[11:17:29] - Nгo retire os crйditos -
[11:17:29] --------------------------------------

[11:17:29] Loading filterscript '
fs5.amx'...
[11:17:29] Loading filterscript '
fs6.amx'...
[11:17:29] Loading filterscript '
fs7.amx'...
[11:17:29] Loading filterscript '
fs8.amx'...
[11:17:29]
-- FS8 loaded.

[11:17:29] Loading filterscript '
fs9.amx'...
[11:17:29]
--FS9 loaded.

[11:17:29] Loading filterscript '
fs10.amx'...
[11:17:29]
*********************
* FS10 loaded *
[11:17:29] * By credits *
*********************
[11:17:29] * Version: 0.5d *
*********************
[11:17:29] * -- LOADED *
*********************

[11:17:29] Loaded 12 filterscripts.

[11:17:29]
-------------------------------------
[11:17:29] Las Venturas DeathMatch/RP/FR [LVDM]

[11:17:29] http://www.lasventurasdm.blogspot.com
[11:17:29] By   [LVDM]Smooke
[11:17:29] -----------------------------------

[11:17:29] Number of vehicle models: 147
[11:17:30] --- Server Shutting Down.
[11:17:30]
Sytem FS1 descarregado
[11:17:30]
*********************
* FS10 *
[11:17:30] * -- SHUTDOWN *
*********************

[11:17:30]

*** Plugin1 Plugin v2.6 by credits unloaded ***
Ficaria assim com


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - brayon1997 - 26.01.2013

Amigo o que eu quero dizer tipo onde faz pra ver a ultima modificaзгo '-'!!! n vejo n aki nй na pasta? do pawno!
E jб revisei meu GM todinho com calma verifiquei atй de as chaves tavam assim
public...
{
...
{ ou o contrario '-' ta tudo certo vey!!!!


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - Mteck - 26.01.2013

Se nгo tiver fechado o Game Mode usa CTRL+Z para desfazer.
O Gm й do 0? se for qual ъltima modificaзгo que fez?



By NaGaTo.


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - brayon1997 - 26.01.2013

Vou dizer uma coisa '-' faz uma semana que tento refazer meu gm do AMX pra PAW e os unicos erros sгo os 26!
Agora mesmo dei uma nova ajeitada '-' e novos erros '-' mesma quantidade:

C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(32) : error 070: rational number support was not enabled
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(63) : error 070: rational number support was not enabled
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(151) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(161) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(175) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(18 : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(201) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(216) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(219) : error 017: undefined symbol "GivePlayerMoney"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(225) : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(22 : error 017: undefined symbol "GetPlayerName"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(230) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(231) : error 017: undefined symbol "SetPlayerHealth"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(232) : error 017: undefined symbol "SetPlayerArmour"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(23 : error 017: undefined symbol "strcmp"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(243) : error 017: undefined symbol "strlen"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(247) : error 017: undefined symbol "strval"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(250) : error 017: undefined symbol "strlen"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(254) : error 017: undefined symbol "strval"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(259) : error 017: undefined symbol "IsPlayerConnected"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(261) : error 017: undefined symbol "GetPlayerName"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(261) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(262) : error 017: undefined symbol "GetPlayerName"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(262) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(263) : error 017: undefined symbol "GetPlayerMoney"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(266) : error 017: undefined symbol "GivePlayerMoney"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(267) : error 017: undefined symbol "GivePlayerMoney"
C:\Documents and Settings\Servidor\Desktop\GTA Servidor LVDM\gamemodes\Test.pwn(28 : error 017: undefined symbol "strcmp"

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


26 Errors.

Sу uma pergunta o fato de que as chaves foram abertas e fechadas erradamente pode provocar estes erros? veja este comando!

//=============================================TRANS FERIR DINHEIRO========================================== ====

if(strcmp(cmd, "/transferir", true) == 0) {
new tmp[256];
tmp = strtok(cmdtext, idx);

if(strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USE: /transferir [ID/Nick] [R$]");
return 1;
}
giveplayerid = strval(tmp);

tmp = strtok(cmdtext, idx);
if(strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USE: /transferir [ID/Nick] [R$]");
return 1;
}
moneys = strval(tmp);

//printf("givecash_command: %d %d",giveplayerid,moneys);


if (IsPlayerConnected(giveplayerid))
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(playerid);
if (moneys > 0 && playermoney >= moneys)
{
GivePlayerMoney(playerid, (0 - moneys));
GivePlayerMoney(giveplayerid, moneys);
format(string, sizeof(string), "Vocк transferiu para %s(player: %d), $%d.", giveplayer,giveplayerid, moneys);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Vocк Recebeu $%d De %s(player: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
printf("%s(playerid:%d) Transformo %d para %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Quantidade Invalida.");
}
}
else {
format(string, sizeof(string), "%d Nгo й Um Player Ativo.", giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}


Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando! - brayon1997 - 26.01.2013

Quote:

Re: 26 Erros As chaves estгo oks! nгo hб chave aberta ou chave fexada sobrando!

Se nгo tiver fechado o Game Mode usa CTRL+Z para desfazer.
O Gm й do 0? se for qual ъltima modificaзгo que fez?


By NaGaTo.
__________________

Vocк й o Nagato do server de Zombie?