format(Msg1, 128, "TXT_DialogRegisterMsg", Name);
#define TXT_DialogRegisterMsg "{FFFFFF}Bem Vindo!\nNick: %s\n{FFFFFF}Status da Conta: {FF0000}Nгo Registrada\n\n{FFFFFF}Digite Uma Senha Para Se Registrar!"
C:\Users\--\Desktop\BmcV2.0\gamemodes\--.pwn(238) : error 021: symbol already defined: "Name"
Essa identaзгo ta boa pacara!@#
@Topic comeзando por um erro NOOB que vocк fez (nгo estou te ofendendo, apenas falando que ta na cara o erro) Код:
C:\Users\--\Desktop\BmcV2.0\gamemodes\--.pwn(238) : error 021: symbol already defined: "Name" E fala qual o sendclientmessage que ta dando erro! @Off Huge Clucker?? really? І |
C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(538) : error 029: invalid expression, assumed zero
C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(544) : warning 209: function "cmd_tapa" should return a value
C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(545) : error 010: invalid function or declaration
C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(546) : error 010: invalid function or declaration
C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(547) : error 010: invalid function or declaration
COMMAND:tapa(playerid, params[])//OK
{
new Msg[128], PTName[24], AdminName[24], OtherPlayer, player1, Float:tapax, Float:tapay, Float:tapaz;
SendAdminText(playerid, "/tapa", params);
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] >= 2)
{
if (sscanf(params, "u", OtherPlayer)) return SendClientMessage(playerid, 0xFF0000AA, "{FF0000}Use: /tapa [id]");
if (IsPlayerConnected(OtherPlayer))
{
GetPlayerName(playerid, AdminName, sizeof(AdminName));
GetPlayerName(OtherPlayer, PTName, sizeof(PTName));
player1 = OtherPlayer;
GetPlayerPos(player1, tapax, tapay, tapaz);
SetPlayerPos(player1, tapax, tapay, tapaz+10);
format(Msg, 128, "{FF0000}-| O Administrador %s deu um tapa em %s |-", AdminName, PTName);
SendClientMessageToAll(0xFFFFFFFF, Msg);
PlayerFile_Save(OtherPlayer);
}
else SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Este jogador nгo se encontra online!");
}
else SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Voce nao esta autorizado a usar esse comando!");
}
return 1;
}
Tenta assim
pawn Код:
pq vc diz isso? |
por ser ele ter uma quantia de posts enorme e nгo saber como resolver este erro
vocк tem que colocar uma ultima return na penultima chave |
C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(538) : error 029: invalid expression, assumed zero C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(544) : warning 209: function "cmd_tapa" should return a value C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(545) : error 010: invalid function or declaration C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(546) : error 010: invalid function or declaration C:\Users\--\Desktop\BmcV2.0\pawno\include\PPC_PlayerCommands.inc(547) : error 010: invalid function or declaration
format(Msg1, 128, "TXT_DialogRegisterMsg", Name);
#define TXT_DialogRegisterMsg "{FFFFFF}Bem Vindo!\nNick: %s\n{FFFFFF}Status da Conta: {FF0000}Nгo Registrada\n\n{FFFFFF}Digite Uma Senha Para Se Registrar!"
format(Msg1, 128, "{FFFFFF}Bem Vindo!\nNick: %s\n{FFFFFF}Status da Conta: {FF0000}Nгo Registrada\n\n{FFFFFF}Digite Uma Senha Para Se Registrar!", Name);