help -
BlackEvils - 20.12.2014
public TestFunction(playerid) //egypt
{
Count--;
if(Count == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 2290.9434, 1308.1182, 59.1595))
{
SendClientMessage(playerid ,0xFF0000AA,"You sucefully capture this gang");
if(GetPlayerTeam(playerid) == 1) GangZoneShowForAll(gang1, 0xFFFF0096); //egypt capture by egypt
if(GetPlayerTeam(playerid) == 2) GangZoneShowForAll(gang1, 0x80000096); //egypt capture by ohad
if(GetPlayerTeam(playerid) == 3) GangZoneShowForAll(gang1, 0xFFFFFF96); //egypt capture by upc
KillTimer(MyTimer[playerid]);
return 1;
}
}
new string[128];
format(string, sizeof(string), "{ffffff}Time remaining until Capture: {ff0000}%d.", Count);
SendClientMessage(playerid, 0xFF0000FF, string);
return 1;
}
else
{
GangZoneStopFlashForAll(gang1);
}
return 1;
}
C:\Users\DAVIDE\Desktop\GangSystem\gamemodes\gangs ystem.pwn(6255) : error 010: invalid function or declaration
C:\Users\DAVIDE\Desktop\GangSystem\gamemodes\gangs ystem.pwn(6259) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: help -
Threshold - 20.12.2014
pawn Код:
public TestFunction(playerid) //egypt
{
Count--;
if(Count == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 2290.9434, 1308.1182, 59.1595))
{
SendClientMessage(playerid, 0xFF0000AA, "You successfully captured this gang.");
GangZoneStopFlashForAll(gang1);
new var = GetPlayerTeam(playerid);
GangZoneShowForAll(gang1, (var == 1) ? (0xFFFF0096) : ((var == 2) ? (0x80000096) : (0xFFFFFF96)));
return 1;
}
}
new string[55];
format(string, sizeof(string), "{ffffff}Time remaining until Capture: {ff0000}%d.", Count);
SendClientMessage(playerid, 0xFF0000FF, string);
return 1;
}
You had too many closing braces "}", and you had an 'else' statement in a weird position.