new Gate; new GateOpen =0;
forward GatesOpen(); forward GatesClose();
SetTimer("GatesOpen",1000,1);
Gate = CreateObject(3578, 1810.63013, 813.19897, 10.39397, 0.00000, 0.00000, 359.99155);
public GatesOpen()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(10.0, i, 1810.8959,806.5244,10.9965,3.8343) && GateOpen == 0)
{
{
MoveObject(Gate, 3578, 1810.63013, 813.19897, 9.07167, 5);
GateOpen =1;
SetTimer("GatesClose",7000,0);
}
}
}
}
public GatesClose()
{
MoveObject(Gate,3578, 1810.63013, 813.19897, 10.39397, 5);
GateOpen =0;
}
PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
new Float:oldpos[3], Float:temppos[3];
GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
temppos[0] = (oldpos[0] -X);
temppos[1] = (oldpos[1] -Y);
temppos[2] = (oldpos[2] -Z);
if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
{
return true;
}
return false;
}
D:\WORLD ATTACK\gamemodes\Test.pwn(762) : warning 217: loose indentation D:\WORLD ATTACK\gamemodes\Test.pwn(783) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
#include <a_samp>
new Gate;
new GateOpen =0;
forward GatesOpen();
forward GatesClose();
main( ){ }
public OnGameModeInit()
{
SetTimer("GatesOpen",1000,1);
Gate = CreateObject(3578, 1810.63013, 813.19897, 10.39397, 0.00000, 0.00000, 359.99155);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public GatesOpen()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(10.0, i, 1810.8959,806.5244,10.9965) && GateOpen == 0)
{
{
MoveObject(Gate, 3578, 1810.63013, 813.19897, 9.07167, 5);
GateOpen =1;
SetTimer("GatesClose",7000,0);
}
}
}
}
public GatesClose()
{
MoveObject(Gate,3578, 1810.63013, 813.19897, 10.39397, 5);
GateOpen =0;
}
PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
new Float:oldpos[3], Float:temppos[3];
GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
temppos[0] = (oldpos[0] -X);
temppos[1] = (oldpos[1] -Y);
temppos[2] = (oldpos[2] -Z);
if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
{
return true;
}
return false;
}
D:\WORLD ATTACK\filterscripts\gate.pwn(24) : warning 213: tag mismatch
D:\WORLD ATTACK\filterscripts\gate.pwn(25) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
Current directory: C:\Users\S0n1C\Desktop Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase ================ READY ================ |

#include <a_samp>
#define COLOR_WHITE 0xFFFFFFAA
new Gate;
new GateOpen =0;
forward GatesOpen();
forward GatesClose();
main( ){ }
public OnGameModeInit()
{
SetTimer("GatesOpen",1000,1);
Gate = CreateObject(3578, 1810.63013, 813.19897, 10.39397, 0.00000, 0.00000, 359.99155);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public GatesOpen()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerToPoint(10.0, i, 1810.8959,806.5244,10.9965) && GateOpen == 0)
{
{
MoveObject(Gate, 3578, 1810.63013, 813.19897, 9.07167, 5);
GivePlayerMoney(i, -20);
SendClientMessage(i,COLOR_WHITE,"Welcome to LV,Thanks to paid the toll");
GateOpen =1;
SetTimer("GatesClose",7000,0);
}
}
}
}
public GatesClose()
{
MoveObject(Gate,3578, 1810.63013, 813.19897, 10.39397, 5);
GateOpen =0;
}
PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
new Float:oldpos[3], Float:temppos[3];
GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
temppos[0] = (oldpos[0] -X);
temppos[1] = (oldpos[1] -Y);
temppos[2] = (oldpos[2] -Z);
if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
{
return true;
}
return false;
}
