C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(278) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(278) : error 001: expected token: ";", but found ")" C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(282) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(290) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(297) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(304) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(317) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(324) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(330) : warning 215: expression has no effect C:\Users\Worker\Desktop\server\filterscripts\cosbase.pwn(336) : warning 215: expression has no effect
public coson(playerid) { for(playerid < MAX_PLAYERS; playerid++) { if(IsPlayerInRangeOfPoint(playerid, 8.0, 3623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { flag == 1; MoveDynamicObject(c, 3623.00293, -338.80359, 13, 10); } if(IsPlayerInRangeOfPoint(playerid, 8.0, 3632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { SetDynamicObjectRot(tr1, 0, 90, 179.9398); flag == 2; } if(IsPlayerInRangeOfPoint(playerid, 8.0, 3674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { SetDynamicObjectRot(tr2, 0, 90, 179.9999); flag == 3; } if(IsPlayerInRangeOfPoint(playerid, 8.0, 3716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { SetDynamicObjectRot(tr3, 0, 90, 179.9398); flag == 4; } } return 1; }
flag == 1;
flag == 2;
//and so on
flag = 1;
flag = 2;
Change this:
pawn Code:
pawn Code:
|
public coson(playerid) { for(playerid < MAX_PLAYERS; playerid++)// 278 { if(IsPlayerInRangeOfPoint(playerid, 8.0, 3623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { flag = 1; MoveDynamicObject(c, 3623.00293, -338.80359, 13, 10); } if(IsPlayerInRangeOfPoint(playerid, 8.0, 3632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { SetDynamicObjectRot(tr1, 0, 90, 179.9398); flag = 2; } if(IsPlayerInRangeOfPoint(playerid, 8.0, 3674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { SetDynamicObjectRot(tr2, 0, 90, 179.9999); flag = 3; } if(IsPlayerInRangeOfPoint(playerid, 8.0, 3716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0) { SetDynamicObjectRot(tr3, 0, 90, 179.9398); flag = 4; } } return 1; }
public coson(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 8.0, 3623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(playerid,"[cos")&& flag == 0)
{
flag = 1;
MoveDynamicObject(c, 3623.00293, -338.80359, 13, 10);
}
if(IsPlayerInRangeOfPoint(playerid, 8.0, 3632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr1, 0, 90, 179.9398);
flag = 2;
}
if(IsPlayerInRangeOfPoint(playerid, 8.0, 3674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr2, 0, 90, 179.9999);
flag = 3;
}
if(IsPlayerInRangeOfPoint(playerid, 8.0, 3716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr3, 0, 90, 179.9398);
flag = 4;
}
return 1;
}
public coson(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 8.0, 3623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
flag = 1;
MoveDynamicObject(c, 3623.00293, -338.80359, 13, 10);
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr1, 0, 90, 179.9398);
flag = 2;
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr2, 0, 90, 179.9999);
flag = 3;
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr3, 0, 90, 179.9398);
flag = 4;
}
return 1;
}
}
public coson(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 8.0, 3623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
flag = 1;
MoveDynamicObject(c, 3623.00293, -338.80359, 13, 10);
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr1, 0, 90, 179.9398);
flag = 2;
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr2, 0, 90, 179.9999);
flag = 3;
}
if(IsPlayerInRangeOfPoint(i, 8.0, 3716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(i,"[cos")&& flag == 0)
{
SetDynamicObjectRot(tr3, 0, 90, 179.9398);
flag = 4;
}
return 1;
}
return 0;
}
public cosoff(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerInRangeOfPoint(playerid, 8.0, 3623.3948,-338.8084,5.8228)&& DoesPlayerHasTag(playerid,"[cos")&& flag == 1)
{
flag = 0;
MoveDynamicObject(c, 3623.00293, -338.80359, 7.58847, 10);
}
if(!IsPlayerInRangeOfPoint(playerid, 8.0, 3632.3701,-339.4589,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 2)
{
flag = 0;
SetDynamicObjectRot(tr1, 0, 0, 179.9398);
}
if(!IsPlayerInRangeOfPoint(playerid, 8.0, 3674.54150, -358.16077,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 3)
{
flag = 0;
SetDynamicObjectRot(tr2, 0, 0, 179.9999);
}
if(!IsPlayerInRangeOfPoint(playerid, 8.0, 3716.73462, -320.60251,5.8228)&& !DoesPlayerHasTag(playerid,"[cos")&& flag == 4)
{
flag = 0;
SetDynamicObjectRot(tr3, 0, 0, 179.9398);
}
return 1;
}
return 0;
}