25.07.2015, 08:36
Hello!
What is printing in the console (server.log) here?
- Mencent
What is printing in the console (server.log) here?
PHP код:
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
for(new x=0; x < sizeof(CP); x++)
{
printf("checkpointid: %i - CP[%i] = %i",checkpointid,x,CP[x]);
if(checkpointid == CP[x])
{
printf("Captured[%i] == %i",x,Captured[x]);
if(Captured[x] == 1)
{
printf("FlashStop");
GangZoneStopFlashForAll(Zone[x]);
UnderAttack[x] = 0;
InCP[playerid] = 0;
tCP[x] = gTeam[playerid];
switch(gTeam[playerid])
{
case TEAM_USA: GangZoneShowForAll(Zone[x], COLOR_LIGHTERBLUE);
case TEAM_RUSS: GangZoneShowForAll(Zone[x], COLOR_RED);
case TEAM_ARAB: GangZoneShowForAll(Zone[x], COLOR_ORANGELIGHT);
case TEAM_EURO: GangZoneShowForAll(Zone[x], COLOR_GREENLIGHT);
case TEAM_REBELS: GangZoneShowForAll(Zone[x], COLOR_BROWNLIGHT);
case TEAM_ASIA: GangZoneShowForAll(Zone[x], COLOR_YELLOW);
}
}
}
}
return 1;
}