SA-MP Forums Archive
Two Errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Two Errors (/showthread.php?tid=439242)



Two Errors - Badarau - 24.05.2013

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?


Re: Two Errors - Kiweeh - 24.05.2013

no public functions


Re: Two Errors - Badarau - 24.05.2013

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?


Re: Two Errors - Abhishek. - 24.05.2013

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


Re: Two Errors - Badarau - 24.05.2013

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)


Re: Two Errors - Abhishek. - 24.05.2013

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



Re: Two Errors - Badarau - 24.05.2013

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...


Re: Two Errors - Abhishek. - 24.05.2013

what are you makeing?
gm or fs?


Re: Two Errors - Badarau - 24.05.2013

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)


Re: Two Errors - Badarau - 25.05.2013

Help please...