#7

Quote:
Originally Posted by bondowocopz
Посмотреть сообщение
Try this code, missing brackets.
Код:
if(strcmp("/capture", cmdtext, true, 10) == 0)
{
if(InDm[playerid] >= 1) return SendClientMessage(playerid,0xFF0000FF,"ERROR:You can't use this command in a dm/event.");
if(PlayerInfo[playerid][gangid] == 0) return SendClientMessage(playerid,COLORE_ROSSO,"ERROR:You are not in any gang.");
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1975.5731, -1249.5286, 20.383)//gang 1
{
if(Count <= 19) return SendClientMessage(playerid, COLORE_ROSSO, "ERROR:This gang is already under capture.");
Count = 20;
if(PlayerInfo[playerid][gangid] == 1)GangZoneFlashForAll(gang1, 0xFFFFFF96);
if(PlayerInfo[playerid][gangid] == 1)SendClientMessage(playerid, COLORE_VERDE, "INFO:Capture started wait 20 seconds for capture this territory.");
if(PlayerInfo[playerid][gangid] == 2)GangZoneFlashForAll(gang1, 0x80000096);
if(PlayerInfo[playerid][gangid] == 2)SendClientMessage(playerid, COLORE_VERDE, "INFO:Capture started wait 20 seconds for capture this territory.");
KillTimer(MyTimer[playerid]);
MyTimer[playerid] = SetTimerEx("TestFunction", 1000, 1, "i", playerid);
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1104.9656, 992.6399, 30.7290))//gang 2
{
if(Counta <= 19) return SendClientMessage(playerid, COLORE_ROSSO, "ERROR:This gang is already under capture.");
Counta = 20;
if(PlayerInfo[playerid][gangid] == 1)GangZoneFlashForAll(gang2, 0xFFFFFF96);
if(PlayerInfo[playerid][gangid] == 1)SendClientMessage(playerid, COLORE_VERDE, "INFO:Capture started wait 20 seconds for capture this territory.");
if(PlayerInfo[playerid][gangid] == 2)GangZoneFlashForAll(gang2, 0x80000096);
if(PlayerInfo[playerid][gangid] == 2)SendClientMessage(playerid, COLORE_VERDE, "INFO:Capture started wait 20 seconds for capture this territory.");
KillTimer(MyTimera[playerid]);
MyTimera[playerid] = SetTimerEx("TestFunctiona", 1000, 1, "i", playerid);
}
return 1;
}
And you forgot to add ")" on :
Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1975.5731, -1249.5286, 20.383)//gang 1
C:\Users\DAVIDE\Desktop\ise\gamemodes\dm.pwn(5524) : warning 217: loose indentation
C:\Users\DAVIDE\Desktop\ise\gamemodes\dm.pwn(5529) : error 001: expected token: ")", but found "{"
C:\Users\DAVIDE\Desktop\ise\gamemodes\dm.pwn(5552) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
Help - by BlackEvils - 27.05.2015, 07:13
Re: Help - by LMaxCo - 27.05.2015, 07:14
Re: Help - by BlackEvils - 27.05.2015, 07:16
Re: Help - by LMaxCo - 27.05.2015, 07:20
Re: Help - by X337 - 27.05.2015, 07:21
Re: Help - by mamorunl - 27.05.2015, 07:22
Re: Help - by BlackEvils - 27.05.2015, 08:45
Re: Help - by Sew_Sumi - 27.05.2015, 10:17
Re: Help - by X337 - 27.05.2015, 12:16
Re: Help - by BlackEvils - 27.05.2015, 19:20

Forum Jump:


Users browsing this thread: 2 Guest(s)