Two Errors
#1

error 001: expected token: "#endif", but found "-end of file-"
error 013: no entry point (no public functions)

End of the script:
pawn Код:
stock Float:GetPlayerDistanceToPoint2(playerid, {Float,_}:...)
{
  new num = numargs(), Float:pos[3];
  GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  if(num == 3) return floatsqroot(floatpower(floatabs(floatsub(pos[0], Float:getarg(1))), 2) + floatpower(floatabs(floatsub(pos[1], Float:getarg(2))), 2));
  else if(num == 4) return floatsqroot(floatpower(floatabs(floatsub(pos[0], Float:getarg(1))), 2) + floatpower(floatabs(floatsub(pos[1], Float:getarg(2))), 2) + floatpower(floatabs(floatsub(pos[2], Float:getarg(3))), 2));
  return -1.0;
}


    return 0;
}


#endif
And public i have 35+ along the script.

What i have to do?
Reply
#2

no public functions
Reply
#3

1.I have 2 errors
2.I saw that me too(error 013: no entry point (NO PUBLIC FUNCTIONS)

Anybody can tell me what to do?Please?
Reply
#4

no entry point....to say but
its because you script dont havr
pawn Код:
main ()
{
print("abhisheks the best");
}
not sure tho....but i got the same thing which was fixed by it
Reply
#5

Quote:
Originally Posted by Abhishek.
Посмотреть сообщение
no entry point....to say but
its because you script dont havr
pawn Код:
main ()
{
print("abhisheks the best");
}
not sure tho....but i got the same thing which was fixed by it
The code i put under public OnFilterScriptInit() or public OnFilterScriptExit() ?

Actually i have:
pawn Код:
public OnFilterScriptInit()
{
    return 1;
}
{
    print("\n----------------------------------");
    print(" Alexandru ");
    print("----------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{

    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");

}

#endif
Something wrong?(i know it is,but what)
Reply
#6

pawn Код:
public OnFilterScriptInit()
{
print("\n----------------------------------");
print(" Alexandru ");
print("----------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
Reply
#7

Quote:
Originally Posted by Abhishek.
Посмотреть сообщение
pawn Код:
public OnFilterScriptInit()
{
print("\n----------------------------------");
print(" Alexandru ");
print("----------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
Same errors...
Reply
#8

what are you makeing?
gm or fs?
Reply
#9

I'm in that period in who i don't know too much,and i learn,doing a GM from 0(For that i need your help to understand better,because of that i ask)
Reply
#10

Help please...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)