CreateDynamicCP errors
#1

This is my script(short): http://pastebin.com/EH23XvaG

and these are the errors:

Код:
ele.pwn(50) : error 017: undefined symbol "CreateDynamicCP"
ele.pwn(51) : error 017: undefined symbol "CreateDynamicCP"
ele.pwn(52) : error 017: undefined symbol "CreateDynamicCP"
ele.pwn(53) : error 017: undefined symbol "CreateDynamicCP"
can anyone tell me what's wrong and help me correct it. thanks
Reply
#2

Include streamer in your script.
Reply
#3

Download the streamer And include it.
Reply
#4

I already Have it. The Plugin and the "include".
Reply
#5

You didn't include the streamer xD
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#include <a_samp>
#include <streamer>
#if defined FILTERSCRIPT

new ELEVATOR[MAX_PLAYERS];
forward OnPlayerEnterDynamicCP(playerid, checkpointid);
new ELEVATOR0;
new ELEVATOR1;
new ELEVATOR2;
new ELEVATOR3;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Heaven's Elevator Loaded");
    print("--------------------------------------\n");

    ELEVATOR0 = CreateObject(18755, -897.09472, 357.890258, 1067.30468, 0.000000, 0.500000, -180.000000);
    ELEVATOR1 = CreateObject(18755, -892.85931, 1103.51538, 1067.47033, 0.000000, -3.500000, 90.500000);
    ELEVATOR2 = CreateObject(18755, -147.20968, 1099.57031, 1067.64135, 0.000000, 0.000000, 0.000000);
    ELEVATOR3 = CreateObject(18755, -151.16056, 354.454223, 1067.18774, 0.000000, 0.000000, -91.000000);

    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else
#endif

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    ELEVATOR[0] = CreateDynamicCP(-147.1267,1099.6681,1066.8413, 3, 0, 0, playerid, 10);//LS-PD garage
    ELEVATOR[1] = CreateDynamicCP(-892.7426,1103.3461,1066.6565, 3, 0, 0, playerid, 10);//LS-PD interior
    ELEVATOR[2] = CreateDynamicCP(-896.7668,358.0761,1066.5074, 3, 0, 0, playerid, 10);//LS-PD Roof
    ELEVATOR[3] = CreateDynamicCP(-151.1534,354.4583,1066.3877,3,0,0,playerid,10);
    return 1;
}

public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    if(checkpointid == ELEVATOR[0])
    {
        MoveObject(ELEVATOR0, -147.0000,1099.0000,20.8922,10);
    }
    if(checkpointid == ELEVATOR[1])
    {
        MoveObject(ELEVATOR1, -892.7178,1103.4810,28.5133,10);
    }
    if(checkpointid == ELEVATOR[2])
    {
        MoveObject(ELEVATOR2, -1033.2452,447.6433,16.7263,10);
    }
    if(checkpointid == ELEVATOR[3])
    {
        MoveObject(ELEVATOR3, -204.8273,239.3603,12.9442,10);
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
Reply
#6

lol fixed. I had to include "Streamer" THANKS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)