30.05.2011, 06:06
C:\Users\USer\Desktop\Untitled.pwn(145) : error 001: expected token: "#endif", but found "-end of file-"
1 erorr
1 erorr
PHP код:
#define COLOR_WHITE 0xFFFFFFAA
#include <a_samp>
#define NEON 1337 // Dialogid
#if defined FILTERSCRIPT
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Neon System By AlexzzPro");
print("--------------------------------------\n");
return 1;
}
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/neon", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, COLOR_WHITE, " You are not the driver");
{
if(!PlayerToPoint(2.0, playerid, 2405.4531, 1022.8162, 10.4792)) return 1;
return 1;
}
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Choose your

