if(strcmp(cmd, "/dominar", true) == 0 || strcmp(cmd, "/do", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)//Cosa nostra
{
if(IsPlayerInPier(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranaEstacao == 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 Groove estгo dominando o pier!",playername);
SendClientMessageToAll(COLOR_LH, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as mafias e a Policia Federal foram avisadas!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZPier,COLORGZ_LH);
Dominando[playerid] = 1;
ProvocoEstacao[playerid] = 1;
GuerranaEstacao = 1;
TempoGuerraEstacao = SetTimerEx("GuerraPier", 60000, 0, "i", playerid);
}
return 1;
}
///fim ========================================================================================
if(strcmp(cmd, "/dominar", true) == 0 || strcmp(cmd, "/do", true) == 0)
{
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)//Cosa nostra
{
if(IsPlayerInPier(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranaEstacao == 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 Groove estгo dominando o pier!",playername);
SendClientMessageToAll(COLOR_LH, string);
SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as mafias e a Policia Federal foram avisadas!");
SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZPier,COLORGZ_LH);
Dominando[playerid] = 1;
ProvocoEstacao[playerid] = 1;
GuerranaEstacao = 1;
TempoGuerraEstacao = SetTimerEx("GuerraPier", 60000, 0, "i", playerid);
}
return 1;
}
}
C:\Users\B\Desktop\GamerX 3.3b\gamemodes\royal.pwn(56765) : error 030: compound statement not closed at the end of file (started at line 56729)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
public GuerraPier(playerid)
{
new string[256];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
if(ProvocoShop[playerid] == 1)
{
if(IsPlayerInPier(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Groove Street Dominaram o Pier!",playername);
SendClientMessageToAll(TEAM_GROVE_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o pier, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop,TEAM_GROVE_COLOR);
Dominando[playerid] = 0;
ProvocoShop[playerid] = 0;
GuerranoShop = 0;
donoshop = 1;
KillTimer(TempoGuerraShop);
return 1;
}
else
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Vocк nгo estб no pier.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
ProvocoPier[playerid] = 0;
GuerranoPier = 0;
donopier = 0;
KillTimer(TempoGuerraShop);
return 1;
}
}
return 1;
}
C:\Users\B\Desktop\GamerX 3.3b\gamemodes\royal.pwn(56765) : warning 209: function "GuerraPier" should return a value
C:\Users\B\Desktop\GamerX 3.3b\gamemodes\royal.pwn(56757) : warning 204: symbol is assigned a value that is never used: "GuerranoPier"
C:\Users\B\Desktop\GamerX 3.3b\gamemodes\royal.pwn(56758) : warning 204: symbol is assigned a value that is never used: "donopier"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 11304 bytes
Code size: 2381940 bytes
Data size: 8077180 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:10486808 bytes
3 Warnings.
public GuerraPier(playerid)
{
new string[256];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
if(ProvocoShop[playerid] == 1)
{
if(IsPlayerInPier(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Groove Street Dominaram o Pier!",playername);
SendClientMessageToAll(TEAM_GROVE_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o pier, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop,TEAM_GROVE_COLOR);
Dominando[playerid] = 0;
ProvocoShop[playerid] = 0;
GuerranoShop = 0;
donoshop = 1;
KillTimer(TempoGuerraShop);
return 1;
}
else
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Vocк nгo estб no pier.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
ProvocoPier[playerid] = 0;
GuerranoPier = 0;
donopier = 0;
KillTimer(TempoGuerraShop);
return 1;
}
}
}
return 1;
}
deu agora warning aff ??
pawn Код:
|
new GuerraPier; // Pode estar assim ou com [128]
new donopier; // Pode estar assim ou com [128]
return 1; // Fim do comando/funзгo/public
public GuerraPier(playerid)
{
new string[256];
new playername[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
if(ProvocoShop[playerid] == 1)
{
if(IsPlayerInPier(playerid))
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e a Groove Street Dominaram o Pier!",playername);
SendClientMessageToAll(TEAM_GROVE_COLOR, string);
SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o pier, a cada 3 minutos nele ganhara grana.");
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop,TEAM_GROVE_COLOR);
Dominando[playerid] = 0;
ProvocoShop[playerid] = 0;
GuerranoShop = 0;
donoshop = 1;
KillTimer(TempoGuerraShop);
return 1;
}
else
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Vocк nгo estб no pier.");
Dominando[playerid] = 0;
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
ProvocoPier[playerid] = 0;
GuerranoPier = 0;
donopier = 0;
KillTimer(TempoGuerraShop);
}
return 1;
}
error 030: compound statement not closed at the end of file (started at line 56729)
linha:
{
new string[256];
{
new playername[MAX_PLAYER_NAME];