// Nuclear
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//Hamas
{
if(IsPlayerInNuclear(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoNuclear == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Hamas estгo dominando a Base Nuclear!",playername);
SendClientMessageToAll(COR_COSA, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, o exercito foi avisado!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
Dominando[playerid] = 1;
ProvocoNuclear[playerid] = 1;
GuerranoNuclear = 1;
TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhum territуrio!");
}
return 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) //Al'queada
{
if(IsPlayerInNuclear(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoNuclear == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a A'lqueada estгo dominando a Base Nuclear!",playername);
SendClientMessageToAll(COR_COSA, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, o exercito foi avisado!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
Dominando[playerid] = 1;
ProvocoNuclear[playerid] = 1;
GuerranoNuclear = 1;
TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3) //Exercito
{
if(IsPlayerInNuclear(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoNuclear == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e o Exercito estгo dominando a Base Nuclear!",playername);
SendClientMessageToAll(COR_COSA, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, os terroristas foram avisados!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZNuclear,COLORGZ_LH);
Dominando[playerid] = 1;
ProvocoNuclear[playerid] = 1;
GuerranoNuclear = 1;
TempoGuerraNuclear = SetTimerEx("GuerraNuclear", 60000, 0, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhum territуrio!");
}
return 1;
}
/////////////////////////////////////////////////////////
// Nuclear
public GuerraNuclear(playerid)
{
new string[128];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
if(ProvocoNuclear[playerid] == 1)
{
if(IsPlayerInNuclear(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Hamas Dominaram a Base Nuclear !",playername);
SendClientMessageToAll(COR_COSA, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou a Base Nuclear, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZNuclear);
GangZoneShowForAll(GZNuclear,COR_TAL);
Dominando[playerid] = 0;
ProvocoNuclear[playerid] = 0;
GuerranoNuclear = 0;
donoNuclear = 1;
KillTimer(TempoGuerraNuclear);
return 1;
}
else
{
SendClientMessage(playerid, COR_COSA, "Vocк nгo estб na Base Nuclear.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZNuclear);
GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
ProvocoNuclear[playerid] = 0;
GuerranoNuclear = 0;
donoNuclear = 0;
KillTimer(TempoGuerraNuclear);
return 1;
}
}
return 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
if(ProvocoNuclear[playerid] == 1)
{
if(IsPlayerInNuclear(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Al'queada Dominaram a Base Nuclear !",playername);
SendClientMessageToAll(COR_COSA, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou a Base Nuclear, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZNuclear);
GangZoneShowForAll(GZNuclear,COR_AL);
Dominando[playerid] = 0;
ProvocoNuclear[playerid] = 0;
GuerranoNuclear = 0;
donoNuclear = 1;
KillTimer(TempoGuerraNuclear);
return 1;
}
else
{
SendClientMessage(playerid, COR_COSA, "Vocк nгo estб na Base Nuclear.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZNuclear);
GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
ProvocoNuclear[playerid] = 0;
GuerranoNuclear = 0;
donoNuclear = 0;
KillTimer(TempoGuerraNuclear);
return 1;
}
}
return 1;
}
if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
if(ProvocoNuclear[playerid] == 1)
{
if(IsPlayerInNuclear(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e o Exercito Dominaram a Base Nuclear !",playername);
SendClientMessageToAll(COR_COSA, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou a Base Nuclear, a cada 5 minutos nela ganharб grana.");
GangZoneStopFlashForAll(GZNuclear);
GangZoneShowForAll(GZNuclear,COR_EXE);
Dominando[playerid] = 0;
ProvocoNuclear[playerid] = 0;
GuerranoNuclear = 0;
donoNuclear = 1;
KillTimer(TempoGuerraNuclear);
return 1;
}
else
{
SendClientMessage(playerid, COR_COSA, "Vocк nгo estб na Base Nuclear.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZNuclear);
GangZoneShowForAll(GZNuclear, 0xFFFFFF96);
ProvocoNuclear[playerid] = 0;
GuerranoNuclear = 0;
donoNuclear = 0;
KillTimer(TempoGuerraNuclear);
return 1;
}
}
return 1;
}
return 1;
}
////////////////////////////////////////////////////////////////
//NUCLEAR
if(PlayerInfo[i][pMembro] == 6 && donoNuclear == 1) // Hamas
{
if(IsPlayerInNuclear(i))
{
GivePlayerMoney(i, GranadoNuclear);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
SendClientMessage(i, COLOR_GRAD3, string);
}
}
if(PlayerInfo[i][pLider] == 6 && donoNuclear == 1) // Hamas
{
if(IsPlayerInNuclear(i))
{
GivePlayerMoney(i, GranadoNuclear);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
SendClientMessage(i, COLOR_GRAD3, string);
}
}
if(PlayerInfo[i][pMembro] == 15 && donoNuclear == 2) // Al'queada
{
if(IsPlayerInNuclear(i))
{
GivePlayerMoney(i, GranadoNuclear);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
SendClientMessage(i, COLOR_GRAD3, string);
}
}
if(PlayerInfo[i][pLider] == 15 && donoNuclear == 2) // Al'queada
{
if(IsPlayerInNuclear(i))
{
GivePlayerMoney(i, GranadoNuclear);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
SendClientMessage(i, COLOR_GRAD3, string);
}
}
if(PlayerInfo[i][pMembro] == 3 && donoNuclear == 3) // Exercito
{
if(IsPlayerInNuclear(i))
{
GivePlayerMoney(i, GranadoNuclear);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
SendClientMessage(i, COLOR_GRAD3, string);
}
}
if(PlayerInfo[i][pLider] == 3 && donoNuclear == 3) // Exercito
{
if(IsPlayerInNuclear(i))
{
GivePlayerMoney(i, GranadoNuclear);
format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoNuclear);
SendClientMessage(i, COLOR_GRAD3, string);
}
}
Tenta.
pawn Код:
|
C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5043) : warning 202: number of arguments does not match definition C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5048) : warning 202: number of arguments does not match definition C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5167) : warning 202: number of arguments does not match definition C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5302) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5304) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5313) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5315) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5324) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5326) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5335) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5337) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5955) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5962) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5964) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(5995) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6252) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6262) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6268) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6274) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6280) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6286) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6293) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6307) : error 017: undefined symbol "GetPlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6317) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6323) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6329) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6335) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6341) : error 017: undefined symbol "GivePlayerMoneyEx" C:\Users\Laercio\Desktop\Luxurion RPG 0.3D\gamemodes\LuxurionRPG.pwn(6348) : error 017: undefined symbol "GivePlayerMoneyEx"
GetPlayerMoneyEx
GivePlayerMoneyEx
Na verdade faltam as duas funзхes.
pawn Код:
|