Pedindo Socorro -
s4kuL - 09.09.2012
Criei um tуpico mais acho que ninguйm sabia resolvi criar de novo
Todo o cуdigo:
pawn Код:
// === Gang Zones D === (Topo)
#define GZS_CRIADAS 8
new GZCriadas[GZS_CRIADAS];
new NomesGZs[GZS_CRIADAS][] =
{
"BarcoN",//1
"BarcoP",//2
"Golfers",//3
"Hunter",//4
"Industria",//5
"PertoDoAero",//6
"Puteiro",//7
"Wokers"//8
};
new CordGZs[GZS_CRIADAS][8] =
{
{-1486.952,1501.404,-1347.895,1548.743}, // BarcoN
{-2545.777,1506.446,-2253.83,1588.191}, // BarcoP
{-2811.853,-407.9592,-2618.718,-183.0962}, // Golfers
{-2556.915,-695.9416,-2483.524,-569.7027}, // Hunter
{-1158.624,-774.8409,-950.0385,-565.7578}, // Industria
{-2195.441,-1051.009,-1845.104,-688.9946}, // PertoDoAero
{-2738.462,1319.935,-2553.053,1548.743}, // Puteiro
{-2151.333,112.7761,-1989.101,361.3089} // Wokers
};
//------------ GZ's Dominaveis ----------- (OnGameModeInit)
for(new i = 0; i <GZS_CRIADAS; i++) //Loop
{
GZCriadas[i] = GangZoneCreate(CordGZs[i][0], CordGZs[i][1], CordGZs[i][2], CordGZs[i][3]);
}
public Terminar(playerid)
{
if(!IsAreaInGangCheck(playerid))
{
SendClientMessage(playerid,red,"Nгo dominou");
}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new name[MAX_PLAYER_NAME],string[150];
GetPlayerName(playerid, name, sizeof(name));
for(new i=0; i < GZS_CRIADAS; i++)
if(x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500)
{
format(string,sizeof(string), "-OpServ- %s conseguiu dominar a gangzone: %s.",name,NomesGZs[i]);
GangZoneStopFlashForAll(GZCriadas[i]);
}
SendAdminMessage(green,string);
return 1;
}
// ------------- Dominaveis --------------- (OnPlayerSpawn)
for(new i = 0; i <GZS_CRIADAS; i++) //Loop
{
GangZoneShowForPlayer(playerid,GZCriadas[i],0xFFFFFFAA);
}
// ============== Stock GZ's ==================
stock IsAreaInGangCheck(playerid)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for (new i=0; i < GZS_CRIADAS; i++)
if (x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500) return 1;
return 0;
}
//---------- Comando para dominar ------------
CMD:dominar(playerid,params[])
{
if(!IsAreaInGangCheck(playerid)) return SendClientMessage(playerid,red,"-Erro- Vocк nгo estб em uma gangzone");
new Float:x, Float:y, Float:z;
new string[100];
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i < GZS_CRIADAS; i++)
if(x > CordGZs[i][0] && y > CordGZs[i][1] && x < CordGZs[i][2] && y < CordGZs[i][3]&& z < 500)
{
GangZoneFlashForAll(GZCriadas[i],GetPlayerColor(playerid));
}
SendAdminMessage(green,string);
SetTimer("Terminar",120000,false);
return 1;
}
Coords das GZ's aqui.
Re: Pedindo Socorro -
s4kuL - 10.09.2012
Alguйm?
Re: Pedindo Socorro -
s4kuL - 10.09.2012
Desculpe pelo double post, mais preciso muito disso, alguйm?
Re: Pedindo Socorro -
focaximubh - 10.09.2012
Quote:
Originally Posted by s4kuL
Desculpe pelo double post, mais preciso muito disso, alguйm?
|
Explique o que estб dando problema no cуdigo por favor....
Re: Pedindo Socorro -
arakuta - 10.09.2012
qual o problema? '----'
Re: Pedindo Socorro -
s4kuL - 10.09.2012
pawn Код:
new CordGZs[GZS_CRIADAS][8] =
{
{-1486.952,1501.404,-1347.895,1548.743}, // BarcoN
{-2545.777,1506.446,-2253.83,1588.191}, // BarcoP
{-2811.853,-407.9592,-2618.718,-183.0962}, // Golfers
{-2556.915,-695.9416,-2483.524,-569.7027}, // Hunter
{-1158.624,-774.8409,-950.0385,-565.7578}, // Industria
{-2195.441,-1051.009,-1845.104,-688.9946}, // PertoDoAero
{-2738.462,1319.935,-2553.053,1548.743}, // Puteiro
{-2151.333,112.7761,-1989.101,361.3089} // Wokers
};
=======
pawn Код:
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\pawno\include\Logs.inc(74) : warning 217: loose indentation
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(123) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(123) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(123) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(123) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(124) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(124) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(124) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(124) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(125) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(125) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(125) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(125) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(126) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(126) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(126) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(126) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(127) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(127) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(127) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(127) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(128) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(128) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(128) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(128) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(129) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(129) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(129) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(129) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(130) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(130) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(130) : warning 213: tag mismatch
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamemodes\ACv1.pwn(130) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
33 Warnings.
E nгo aparece as GZ's in-game.
Re: Pedindo Socorro -
focaximubh - 10.09.2012
@Edit Se puder postar rбpido o que pedir seria bacana ai poderemos ajudar.........
Espere um momento......
Poste por favor a primeira e a ъltima linha do erro e poste tambйm a linha anterior ao erro..
Re: Pedindo Socorro -
s4kuL - 10.09.2012
1є: {-1486.952,1501.404,-1347.895,1548.743}, // BarcoN
Ultima: {-2151.333,112.7761,-1989.101,361.3089} // Wokers
Re: Pedindo Socorro -
focaximubh - 10.09.2012
Estes erros sгo erros de tags como ele mesmo fala no seu caso somente vocк poderб resolver, pegue e procure as tags com seus respectivos nomes certos, revise totalmente seu cуdigo DENTRO DO GM e dк uma corrigida na identaзгo do seus cуdigos tente usar isso como modo de identaзгo
http://ipsteam.atwebpages.com/
aguardo respostas sobre o que vocк conseguiu.
Coisinha
pawn Код:
new CordGZs[GZS_CRIADAS][8] =
{
{-1486.952,1501.404,-1347.895,1548.743}, // BarcoN
{-2545.777,1506.446,-2253.83,1588.191}, // BarcoP
{-2811.853,-407.9592,-2618.718,-183.0962}, // Golfers
{-2556.915,-695.9416,-2483.524,-569.7027}, // Hunter
{-1158.624,-774.8409,-950.0385,-565.7578}, // Industria
{-2195.441,-1051.009,-1845.104,-688.9946}, // PertoDoAero
{-2738.462,1319.935,-2553.053,1548.743}, // Puteiro
{-2151.333,112.7761,-1989.101,361.3089} // Wokers
};
TENTE USAR
pawn Код:
new CordGZs[GZS_CRIADAS][8]
{
{-1486.952,1501.404,-1347.895,1548.743}, // BarcoN
{-2545.777,1506.446,-2253.83,1588.191}, // BarcoP
{-2811.853,-407.9592,-2618.718,-183.0962}, // Golfers
{-2556.915,-695.9416,-2483.524,-569.7027}, // Hunter
{-1158.624,-774.8409,-950.0385,-565.7578}, // Industria
{-2195.441,-1051.009,-1845.104,-688.9946}, // PertoDoAero
{-2738.462,1319.935,-2553.053,1548.743}, // Puteiro
{-2151.333,112.7761,-1989.101,361.3089} // Wokers
};
somente para tirar uma dъvida atй minha mesmo use e veja...
Re: Pedindo Socorro -
s4kuL - 10.09.2012
Tirou as warning mais ficou 2 erros:
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamem odes\ACv1.pwn(122) : error 001: expected token: ";", but found "{"
C:\Documents and Settings\Lucas.DESKTOP\Desktop\Assasins'City\gamem odes\ACv1.pwn(131) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.