erro -
LKING - 17.06.2013
C:\Nova pasta\GM\pawno\include\core.inc(12) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: erro -
LKING - 17.06.2013
ajuda plz omg
Re: erro -
Standby - 17.06.2013
so postar a linha do erro
Re: erro -
lucaspilar - 17.06.2013
poste a linha do erro
Re: erro -
LKING - 17.06.2013
include do core:
erro 12:
erro do GM
ERRO:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
ERRO 12: new kName[128], string[128];
GetPlayerName(killerid, kName, sizeof(kName));
PlayerKills[killerid] = PlayerKills[killerid] +1;
PlayerKills[playerid] = 0;
if(PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
{
format(string,128, "~r~%s OMG, Um jб foi.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 1000);
GivePlayerMoney(playerid, -1000);
return 1;
}
Re: erro -
LKING - 17.06.2013
?entao
Re: erro -
DannielCooper - 17.06.2013
Funзгo invбlida pela declaraзгo, ou vocк declarou errado, ou vocк fez a funзгo errada.
Re: erro -
LKING - 17.06.2013
pawn Код:
#include <a_samp>
new PlayerKills[MAX_PLAYERS] = 0, Dominating[MAX_PLAYERS] = 0;
public OnPlayerDeath(playerid, killerid, reason)
{
new kName[128], string[128];
GetPlayerName(killerid, kName, sizeof(kName));
PlayerKills[killerid] = PlayerKills[killerid] +1;
PlayerKills[playerid] = 0;
if(PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
{
format(string,128, "~r~%s OMG, Um jб foi.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 1000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 2)
{
format(string,128, "~r~%s O que й isto, Dois jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 1500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 3)
{
format(string,128, "~r~%s Espetacular, Tres jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 2000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 4)
{
format(string,128, "~r~%s UIII, Quatro jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 2500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 5)
{
format(string,128, "~r~%s Mas o que й isto, Cinco jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 3000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 6)
{
format(string,128, "~r~%s Estбs a brincar muito, Seis jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 3500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 7)
{
format(string,128, "~r~%s Joga com calma pah. Sete jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 4000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 8)
{
format(string,128, "~r~%s E nгo para. Oito jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 4500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 9)
{
format(string,128, "~r~%s Fodas. Nove jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 5000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 10)
{
format(string,128, "~r~%s OMG. Dez jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 6000);
GivePlayerMoney(playerid, -1000);
return 1;
}
return 1;
}
esta ai tudo. e um FS
Re: erro -
DannielCooper - 17.06.2013
E qual й a linha do error ? --'
Re: erro -
-GooGle- - 17.06.2013
O cуdigo estб correto pelo meu ver.O problema nгo estб nele e sim na include Core,use esse cуdigo como FS e nгo terб problemas.
pawn Код:
#include "a_samp"
new
PlayerKills[MAX_PLAYERS] = 0,
Dominating[MAX_PLAYERS] = 0
;
public OnPlayerDeath(playerid, killerid, reason){
new
kName[128],
string[128]
;
GetPlayerName(killerid, kName, sizeof(kName));
PlayerKills[killerid] = PlayerKills[killerid] +1;
PlayerKills[playerid] = 0;
if(PlayerKills[killerid] == 4 && Dominating[killerid] == 1){
format(string,128, "~r~%s OMG, Um jб foi.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 1000);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 2){
format(string,128, "~r~%s O que й isto, Dois jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 1500);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 3){
format(string,128, "~r~%s Espetacular, Tres jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 2000);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 4){
format(string,128, "~r~%s UIII, Quatro jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 2500);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 5){
format(string,128, "~r~%s Mas o que й isto, Cinco jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 3000);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 6){
format(string,128, "~r~%s Estбs a brincar muito, Seis jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 3500);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 7){
format(string,128, "~r~%s Joga com calma pah. Sete jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 4000);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 8){
format(string,128, "~r~%s E nгo para. Oito jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 4500);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 9){
format(string,128, "~r~%s Fodas. Nove jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 5000);
GivePlayerMoney(playerid, -1000);
return true;
}
if(PlayerKills[killerid] == 10){
format(string,128, "~r~%s OMG. Dez jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 6000);
GivePlayerMoney(playerid, -1000);
return true;
}
return true;
}