Jump to content

Question

Posted

Am incercat sa fac si eu o bariera dar imi da o eroare:

[pawn]#include <a_samp>

new Gate, bool:GateClosed = true;

public OnFilterScriptInit()

{

Gate = CreateObject(969, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0);

SetTimer("GateCheck", 7000, true);

return 1;

}

forward GateCheck();

public GateCheck()

{

if(!IsObjectMoving(Gate)){

for(new i; i<GetMaxPlayers(); i++){

if(IsPlayerConnected(i && IsPlayerInRangeOfPoint(i, 15.0, 0.0, 0.0, 0.0)){

if(GateClosed){

GateClosed = false;

MoveObject(Gate, 1268.51, -2046.54, 59.17, 3.0, 0.0, 0.0, 0.0);

SendClientMessage(i, 0x00FF00FF, "opengate");

}

else{

GateClosed = true;

MoveObject(Gate, 0.0, 0.0, 0.0, 3.0, 0.0, 0.0, 0.0);

SendClientMessage(i, 0xFF0000FF, "closegate");

}

}

}

}

}[/pawn]

eroarea e asta

C:\Users\Razvan\Desktop\Fas Drift 0.3d\filterscripts\gate.pwn(17) : error 001: expected token: ")", but found "{"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

2 answers to this question

Recommended Posts

Posted

Inlocuie linia 17 cu asta:

[pawn]if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 15.0, 0.0, 0.0, 0.0)){[/pawn]

Si nia postat unde trebuie.

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.