14.07.2012, 21:44
Galera eu segui o tutorial do membro Link_ para fazer as gangs e as gangzones dominaveis, tava tudo certinho quando eu fiz com 14 gangs mais quando eu fui acrescentar mais 10 gangs deu o maior problema, as cores dos players nгo bate com a cor das bases e algumas gangzones nao estao dominando.
Usarei este tуpico para varias duvidas...
Link do tutorial: https://sampforum.blast.hk/showthread.php?tid=182748
«Duvidas»
-La no tutorial as cores estao definidas em um sу lugar :
Caso eu queira colocar assim
Como ficaria a parte final?
Pois se eu apagar este "gzcolor" da alguns erros nessa ultima parte:
Erros
Alguem poderia ajudar?
Usarei este tуpico para varias duvidas...
Link do tutorial: https://sampforum.blast.hk/showthread.php?tid=182748
«Duvidas»
-La no tutorial as cores estao definidas em um sу lugar :
pawn Код:
new gzcolor[3] =
pawn Код:
#define Color_Gang1 0xFFFFFFFF
#define Color_Gang2 0xFFFFFFFF
pawn Код:
public ZoneCheckpointCheckerbyRangel()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))continue;
if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 2 &&
//sгo 2 checkpoints, entгo mude se for colocar mais...
gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
{
if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 30)
{
cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
new tmp[10];
format(tmp, sizeof tmp, "~w~%2d/30", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
GameTextForPlayer(i, tmp, 1001, 4);
GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
} else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 30) //passou 30 segundos dentro do checkpoint
{
GameTextForPlayer(i, "~w~Conquistado", 4000, 1);
gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));//Ficar piscando a cor do player na GZ
}
}
}
}
Erros
pawn Код:
error 017: undefined symbol "gzcolor"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
warning 217: loose indentation
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line