COMO SULUCIONAR ESTE ERROR -
chucho - 03.06.2011
hola a todos bueno antes que nada les agradesco por sacarme de mis dudas y haberme ayudado con las dudad que tengo
bueno tengo un problema ya lo cheque todo bien pero no se en donde tengo el error por eso decidi postear para que me puedan ayudar bueno les dejo mis codigos gracias
pawn Код:
//Gagnzones
new Territorio_Grove;
new Territorio_Ballas;
new Territorio_Vagos;
new Territorio_Aztecas;
new Territorio_Barberos;
new Territorio_Civiles;
new Territorio_Interpol;
new Territorio_Mafia;
new Territorio_Basureros;
forward GetZoneID(payerid);
forward IsPlayerInRangeOfPoint(playerid);
pawn Код:
////////////////////////////////////////GANGZONES/////////////////////////////////////////////////////
}
GangZoneFlashForPlayer(playerid, Territorio_Grove, 0x0080009C); //Territorio_Grove
GangZoneFlashForPlayer(playerid, Territorio_Ballas, 0x80008096); //Territorio_Balla
GangZoneFlashForPlayer(playerid, Territorio_Vagos, 0xFFFF0096); //Territorio_Vagos
GangZoneFlashForPlayer(playerid, Territorio_Aztecas, 0x2EBFDE96); //Territorio_Azteca
GangZoneFlashForPlayer(playerid, Territorio_Barberos, 0x0080FF96); //Territorio_Barberos
GangZoneFlashForPlayer(playerid, Territorio_Civiles, 0xFF000096); // Terriotorio_Civiles
GangZoneFlashForPlayer(playerid, Territorio_Interpol, 0x00000096); //Territorio_Interpol
GangZoneFlashForPlayer(playerid, Territorio_Mafia, 0x80404096); //Territorio_Mafia
GangZoneFlashForPlayer(playerid, Territorio_Basureros, 0x80800096); // Territorio_Basurero
GangZoneShowForPlayer(playerid, Territorio_Grove, 0x0080009C);
GangZoneShowForPlayer(playerid, Territorio_Ballas, 0x80008096);
GangZoneShowForPlayer(playerid, Territorio_Vagos, 0xFFFF0096);
GangZoneShowForPlayer(playerid, Territorio_Aztecas, 0x2EBFDE96);
GangZoneShowForPlayer(playerid, Territorio_Barberos, 0x0080FF96);
GangZoneShowForPlayer(playerid, Territorio_Civiles, 0xFF000096);
GangZoneShowForPlayer(playerid, Territorio_Interpol, 0x00000096);
GangZoneShowForPlayer(playerid, Territorio_Mafia, 0x80404096);
GangZoneShowForPlayer(playerid, Territorio_Basureros, 0x80800096);
return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
GangZoneStopFlashForPlayer(playerid, Territorio_Grove); //Territorio_Grove
GangZoneStopFlashForPlayer(playerid, Territorio_Ballas); //Territorio_Balla
GangZoneStopFlashForPlayer(playerid, Territorio_Vagos); //Territorio_Vagos
GangZoneStopFlashForPlayer(playerid, Territorio_Aztecas); //Territorio_Azteca,
GangZoneStopFlashForPlayer(playerid, Territorio_Barberos); //Territorio_Barberos
GangZoneStopFlashForPlayer(playerid, Territorio_Civiles); // Terriotorio_Civiles
GangZoneStopFlashForPlayer(playerid, Territorio_Interpol); //Territorio_Interpol
GangZoneStopFlashForPlayer(playerid, Territorio_Mafia); //Territorio_Mafia
GangZoneStopFlashForPlayer(playerid, Territorio_Basureros); // Territorio_Basurero
return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(gTeam[killerid] != gTeam[playerid]) {
if(GetZoneID(playerid) == gTeam[playerid]) {
switch(gTeam[playerid]) {
case TEAM_GROVE: GangZoneFlashForAll(Territorio_Grove,COLOR_TEAM0);
case TEAM_BALLAS: GangZoneFlashForAll(Territorio_Ballas,COLOR_TEAM1);
case TEAM_VAGOS: GangZoneFlashForAll(Territorio_Vagos,COLOR_TEAM2);
case TEAM_AZTECAS: GangZoneFlashForAll(Territorio_Aztecas,COLOR_TEAM3);
case TEAM_BARBEROS: GangZoneFlashForAll(Territorio_Barberos,COLOR_TEAM4);
case TEAM_CIVILES: GangZoneFlashForAll(Territorio_Civiles,COLOR_TEAM5);
case TEAM_INTERPOL: GangZoneFlashForAll(Territorio_Interpol,COLOR_TEAM6);
case TEAM_MAFIA: GangZoneFlashForAll(Territorio_Mafia,COLOR_TEAM7);
case TEAM_BASUREROS: GangZoneFlashForAll(Territorio_Basureros,COLOR_TEAM8);
}
}
}
return 1;
}
pawn Код:
public OnGameModeInit()
{
Territorio_Grove = GangZoneCreate(2083.108, -1733.182, 2619.307, -1606.855);
Territorio_Ballas = GangZoneCreate(965.0738, -1393.677, 1352.963, -1137.074);
Territorio_Vagos = GangZoneCreate(1969.022, -1291.036, 2356.912, -1046.276);
Territorio_Aztecas = GangZoneCreate(1680.007, -2064.793, 1950.008, -1602.907);
Territorio_Barberos = GangZoneCreate(2459.588, -2250.337, 2832.266, -1934.517);
Territorio_Civiles = GangZoneCreate(1725.641, -1492.37, 2147.756, -1342.356);
Territorio_Interpol = GangZoneCreate(1307.329, -1820.033, 1664.796, -1401.572);
Territorio_Mafia = GangZoneCreate(1029.722, -2187.173, 1691.416, -1871.354);
Territorio_Basureros = GangZoneCreate(2451.983, -1259.454, 2817.055, -1042.328);
return 1;
}
pawn Код:
stock GetZoneID(playerid) {
//--------------------------------------------------------------------------
if(IsPlayerInRangeOfPoint(playerid,2083.108, -1733.182, 2619.307, -1606.855)) return TEAM_GROVE;
if(IsPlayerInRangeOfPoint(playerid,965.0738, -1393.677, 1352.963, -1137.074)) return TEAM_BALLAS;
if(IsPlayerInRangeOfPoint(playerid,1969.022, -1291.036, 2356.912, -1046.276)) return TEAM_VAGOS;
if(IsPlayerInRangeOfPoint(playerid,1680.007, -2064.793, 1950.008, -1602.907)) return TEAM_AZTECAS;
if(IsPlayerInRangeOfPoint(playerid,2459.588, -2250.337, 2832.266, -1934.517)) return TEAM_BARBEROS;
if(IsPlayerInRangeOfPoint(playerid,1725.641, -1492.37, 2147.756, -1342.356)) return TEAM_CIVILES;
if(IsPlayerInRangeOfPoint(playerid,1307.329, -1820.033, 1664.796, -1401.572)) return TEAM_INTERPOL;
if(IsPlayerInRangeOfPoint(playerid,1029.722, -2187.173, 1691.416, -1871.354)) return TEAM_MAFIA;
if(IsPlayerInRangeOfPoint(playerid,2451.983, -1259.454, 2817.055, -1042.328)) return TEAM_BASUREROS;
return -1;
}
Y ESTOS SON LOS ERRORES QUE ME MANDA EN EL MOMENTO DE COMPILAR
pawn Код:
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1306) : error 025: function heading differs from prototype
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1308) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1309) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1310) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1311) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1312) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1313) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1314) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1315) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
C:\Documents and Settings\Geek-Man\Escritorio\SERVIDOR\SERVIDOR\gamemodes\TerritorySkyLine.pwn(1316) : error 004: function "IsPlayerInRangeOfPoint" is not implemented
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
Respuesta: COMO SULUCIONAR ESTE ERROR -
AlexD1151 - 03.06.2011
creo que te falto definir el rango de distancia del IsPlayerInRangeOfPoint, para mas info:
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Respuesta: COMO SULUCIONAR ESTE ERROR -
chucho - 03.06.2011
ALO QUE ME REFIEROO LO QUE QUIERO ES QUE NADA MAS FLASHEN LAS ZONAS DE LO EQUIPOS QUE ESTAN EJEMPLO SI UN GRVO ATACA A UN BALLA QUE EMPIEZE A FLASHEAR EL TERRITORIO DE LOS BALLAS AYUDENME POR QUE YA LLEVO VASTANTE TIEMPO Y NO PUEDO
Respuesta: COMO SULUCIONAR ESTE ERROR -
Lunnatiicz - 03.06.2011
En primera, porquй tienes una llave acб de cerrar?
pawn Код:
////////////////////////////////////////GANGZONES/////////////////////////////////////////////////////
}
GangZoneFlashForPlayer(playerid, Territorio_Grove, 0x0080009C); //Territorio_Grove
GangZoneFlashForPlayer(playerid, Territorio_Ballas, 0x80008096); //Territorio_Balla
GangZoneFlashForPlayer(playerid, Territorio_Vagos, 0xFFFF0096); //Territorio_Vagos
GangZoneFlashForPlayer(playerid, Territorio_Aztecas, 0x2EBFDE96); //Territorio_Azteca
GangZoneFlashForPlayer(playerid, Territorio_Barberos, 0x0080FF96); //Territorio_Barberos
GangZoneFlashForPlayer(playerid, Territorio_Civiles, 0xFF000096); // Terriotorio_Civiles
GangZoneFlashForPlayer(playerid, Territorio_Interpol, 0x00000096); //Territorio_Interpol
GangZoneFlashForPlayer(playerid, Territorio_Mafia, 0x80404096); //Territorio_Mafia
GangZoneFlashForPlayer(playerid, Territorio_Basureros, 0x80800096); // Territorio_Basurero
GangZoneShowForPlayer(playerid, Territorio_Grove, 0x0080009C);
GangZoneShowForPlayer(playerid, Territorio_Ballas, 0x80008096);
GangZoneShowForPlayer(playerid, Territorio_Vagos, 0xFFFF0096);
GangZoneShowForPlayer(playerid, Territorio_Aztecas, 0x2EBFDE96);
GangZoneShowForPlayer(playerid, Territorio_Barberos, 0x0080FF96);
GangZoneShowForPlayer(playerid, Territorio_Civiles, 0xFF000096);
GangZoneShowForPlayer(playerid, Territorio_Interpol, 0x00000096);
GangZoneShowForPlayer(playerid, Territorio_Mafia, 0x80404096);
GangZoneShowForPlayer(playerid, Territorio_Basureros, 0x80800096);
return 1;
}
?
Y otra, porquй en un forward tienes "IsPlayerRangeOfPoint"?
P.D Te falta el radio de alcanze e.e
Respuesta: COMO SULUCIONAR ESTE ERROR -
chucho - 04.06.2011
ok lunnaticz pues no se es que me explico un amigo pero como el me ayudo a hacerlo pues esta mal por lo que veo pero si se que tu ya me dijiste pero me puedes explicar como hacerlo o donde pornerlo porfavor es que ya estoy un poco desesperado de que no me ayuden