error 013: no entry point (no public functions)
#1

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;
}
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)