SA-MP Forums Archive
error 013: no entry point (no public functions) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: error 013: no entry point (no public functions) (/showthread.php?tid=424083)



error 013: no entry point (no public functions) - Hussain - 20.03.2013

I'm trying to make Interior Pickups enter / exit

this is the error i get when i compile:
Код:
error 013: no entry point (no public functions)
Heres my code:
Код:
#include <a_samp>


new SFPD; // San Fiero : Police Department.
new ESFP; // Exit San Fiero : Police Department.

public OnFilterScriptInit()
{
    print("\n------------------------------------------------");
    print(" LOADED INTERIOR PICKUPZ - BY VENOM");
    print("------------------------------------------------\n");
    //----------------------------------------------------------------------
    SFPD = CreatePickup(1559, 1, 1605.40002,711.40002,15, -1);
    // Remplace the X, Y, Z, by your coordinates (where we will see the pickup,
    // if you don't know to do, use the famous samp_debug.)
    ESFP = CreatePickup(1559, 1, 246.39999,108.1,108.1, -1);
    // Remplace the X, Y, Z, by your coordinates (where we will see the pickup,
    // in the SFPD interriors, use the famous samp_debug.)
    return 1;
}
public OnFilterScriptExit()
{
    print("\n------------------------------------------------");
    print(" UNLOADED INTERIOR PICKUPZ - BY VENOM);
    print("------------------------------------------------\n");
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == SFPD)
    {
    SetPlayerInterior(playerid, 10); // Info by kamzaf
    SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); // Info by kamzaf
    }
    if(pickupid == ESFP)
    {
    SetPlayerInterior(playerid, 0); // The normal worlds.
    SetPlayerPos(playerid, 1605.40002,711.40002,15);
    // Remplace the X, Y, Z, by your coordinates (when we will leave the SFPD,
    // if you don't know, use our famous samp_debug.)
    }
    return 1;
}



Re: error 013: no entry point (no public functions) - Borg - 21.03.2013

you must use main() function in your GM/FS.