Help with command if(!PlayerToPoint
#6

C:\Users\USer\Desktop\Untitled.pwn(145) : error 001: expected token: "#endif", but found "-end of file-"

1 erorr


PHP код:
#define COLOR_WHITE 0xFFFFFFAA
#include <a_samp>
#define NEON 1337 // Dialogid
#if defined FILTERSCRIPT
forward PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z);
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Neon System By AlexzzPro");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
PlayerToPoint(Float:radiplayeridFloat:xFloat:yFloat:z)
{
new 
Float:oldposxFloat:oldposyFloat:oldposz;
 new 
Float:tempposxFloat:tempposyFloat:tempposz;
 
GetPlayerPos(playeridoldposxoldposyoldposz);
 
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(playeridcmdtext[])
{
    if (
strcmp("/neon"cmdtexttrue10) == 0)
    {
        if(
IsPlayerInAnyVehicle(playerid))
           {
              if(
GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
            {
                
SendClientMessage(playeridCOLOR_WHITE"      You are not the driver");
                {
                if(!
PlayerToPoint(2.0playerid2405.45311022.816210.4792)) return 1;
                return 
1;
            }
            
ShowPlayerDialog(playeridNEONDIALOG_STYLE_LIST"Choose your 
Reply


Messages In This Thread
Help with command if(!PlayerToPoint - by boyan96 - 30.05.2011, 04:55
Re: Help with command if(!PlayerToPoint - by sansko - 30.05.2011, 05:16
Re: Help with command if(!PlayerToPoint - by boyan96 - 30.05.2011, 05:29
Re: Help with command if(!PlayerToPoint - by sansko - 30.05.2011, 05:45
Re: Help with command if(!PlayerToPoint - by yanir3 - 30.05.2011, 05:49
Re: Help with command if(!PlayerToPoint - by boyan96 - 30.05.2011, 06:06
Respuesta: Help with command if(!PlayerToPoint - by Lunnatiicz - 30.05.2011, 06:09
Re: Help with command if(!PlayerToPoint - by boyan96 - 30.05.2011, 06:13
Re: Help with command if(!PlayerToPoint - by newarvuti - 30.05.2011, 18:40

Forum Jump:


Users browsing this thread: 2 Guest(s)