SA-MP Forums Archive
[Ajuda] FS conce com erros - 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] FS conce com erros (/showthread.php?tid=609523)



FS conce com erros - Samu290999 - 13.06.2016

olб, tava tentano edita um FS duma conce q achei na net e tava com 13 erros q eu conseguir resolver, porйm sobrou 4 erros... alguйm me ajuda? vlw

erro:C:\Users\Famнla\Downloads\GM's e Arquivos\GM\+\pawno\include\conce_main.pwn(99) : error 025: function heading differs from prototype
C:\Users\Famнla\Downloads\GM's e Arquivos\GM\+\pawno\include\conce_main.pwn(99 -- 113) : error 021: symbol already defined: "command"
C:\Users\Famнla\Downloads\GM's e Arquivos\GM\+\pawno\include\conce_main.pwn(113) : error 025: function heading differs from prototype
C:\Users\Famнla\Downloads\GM's e Arquivos\GM\+\pawno\include\conce_main.pwn(113 -- 137) : fatal error 107: too many error messages on one line

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


4 Errors.



Linhas (99~137):

command (aconce, playerid, params []) {
if(IsPlayerAdmin(playerid)) {
SendClientMessage(playerid, -1, "");
SendClientMessage(playerid, -1, "Comandos dispoveis para a adminsitracao:");
SendClientMessage(playerid, -1, "/aconce /adicionarveiculo /editarconceveiculo");
SendClientMessage(playerid, -1, "Comando efetuado com Sucesso!");

}
SendClientMessage(playerid, -1, "");
SendClientMessage(playerid, -1, "Comandos dispoveis para o jogador:");
SendClientMessage(playerid, -1, "/null");
SendClientMessage(playerid, -1, "Nгo hб comandos para players!");
return true;
}
command (motor, playerid, params []) {
new engine, lights, alarm, doors, bonnet, boot, objective;
if(!IsPlayerInAnyVehicle(playerid)) return true;
for(new i = 0; i < MAX_PLAYER_VEHICLE; i++) {
if(GetPlayerVehicleID(playerid) != playerVeiculo[playerid][i][veiculoVeiculo]) continue;
if(playerVeiculo[playerid][i][veiculoMotor] == true) {
playerVeiculo[playerid][i][veiculoMotor] = false;
GetVehicleParamsEx(playerVeiculo[playerid][i][veiculoVeiculo], engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(playerVeiculo[playerid][i][veiculoVeiculo], 0, lights, alarm, 1, bonnet, boot, objective);
return true;
}
else if(playerVeiculo[playerid][i][veiculoMotor] == false) {
playerVeiculo[playerid][i][veiculoMotor] = true;
GetVehicleParamsEx(playerVeiculo[playerid][i][veiculoVeiculo], engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(playerVeiculo[playerid][i][veiculoVeiculo], 1, lights, alarm, 1, bonnet, boot, objective);
return true;
}
}
GetPlayerVehicleID(playerid);
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == 1) SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, boot, bonnet, boot, objective);
else if(engine == 0) SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, boot, bonnet, boot, objective);
return true;
}
command(criarv, playerid, params []) {

vlw


Re: FS conce com erros - zSuYaNw - 13.06.2016

Estб aparecendo esses erros pois estб faltando uma include, clique aqui para baixar ela e coloque na pasta include. coloque no topo do seu gamemode:


pawn Код:
#include zcmd