Applying a IF condition
#1

Hello, i was making a gangzone turf wars for my gm i applied a condition here
Quote:

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == Checkpoint[GZONE])
{

if(gTeam[playerid] == tCP[GZONE]) return SendClientMessage(playerid,0xFFFFFF,"This turf is already captured by your team.");
timer[playerid][GZONE] = SetTimerEx("SetZone",30000,false,"i",playerid);
SendClientMessage(playerid,0xFFFFFF,"Wait for 45 sec to take over the Turf ");
iCP[playerid] = GZONE;
}

But Server acctually refusses the condition "if(gTeam[playerid] == tCP[GZONE]) return SendClientMessage(playerid,0xFFFFFF,"This turf is already captured by your team.");"

Any help?
Reply


Messages In This Thread
Applying a IF condition - by Mr.Faqahat - 17.01.2013, 18:19
Re: Applying a IF condition - by azzerking - 17.01.2013, 18:21
Re: Applying a IF condition - by Mr.Faqahat - 18.01.2013, 07:11
Re: Applying a IF condition - by basse - 18.01.2013, 09:14
Re: Applying a IF condition - by Norrin - 18.01.2013, 10:38
Re: Applying a IF condition - by DaRk_RaiN - 18.01.2013, 10:46

Forum Jump:


Users browsing this thread: 3 Guest(s)