Help me in 2 error
#1

Hello
guys i have Slide FS but have 2 error
Quote:

(16) : error 017: undefined symbol "MapAndreas_Init"

Quote:

(12 : error 017: undefined symbol "MapAndreas_FindZ_For2DCoord"

line 16
PHP код:
MapAndreas_Init(MAP_ANDREAS_MODE_FULL); 
line 128
PHP код:
MapAndreas_FindZ_For2DCoord(pl_pos[playerid][0],pl_pos[playerid][1],pl_pos[playerid][3]); 
too full line
PHP код:
public OnFilterScriptInit()
{
    
MapAndreas_Init(MAP_ANDREAS_MODE_FULL);
    print(
"\n--------------------------------------");
    print(
"         <Advanced Rope (v1)>           ");
    print(
"  © Trooper([Y]) , 2010 (Nicksoft)    ");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
GetPlayerSkin(playerid) == skinid && GetPVarInt(playerid,"roped") == && GetPlayerVehicleSeat(playerid) != && IsPlayerInAnyVehicle(playerid) && (newkeys KEY_SUBMISSION || newkeys == KEY_SUBMISSION))
    {
        
GetPlayerPos(playerid,pl_pos[playerid][0],pl_pos[playerid][1],pl_pos[playerid][2]);
        
MapAndreas_FindZ_For2DCoord(pl_pos[playerid][0],pl_pos[playerid][1],pl_pos[playerid][3]);
        
pl_pos[playerid][4] = floatsub(pl_pos[playerid][2],pl_pos[playerid][3]);
        if(
pl_pos[playerid][4] >= ropelength) return SendClientMessage(playerid,0xAA3333AA,"You are too scared to slide from this height");
        if(
pl_pos[playerid][4] <= 2) return RemovePlayerFromVehicle(playerid);
        
SetPVarInt(playerid,"roped",1);
        
SetPlayerCheckpoint(playerid,pl_pos[playerid][0],pl_pos[playerid][1],floatsub(pl_pos[playerid][3],offsetz),20);
        
SetPlayerPos(playerid,pl_pos[playerid][0],pl_pos[playerid][1],floatsub(pl_pos[playerid][2],2));
        
SetPlayerVelocity(playerid,0,0,0);
        for(new 
rep=0;rep!=10;rep++) ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0);
        for(new 
cre=0;cre<=pl_pos[playerid][4];cre++)
        {
            
r0pes[playerid][cre] = CreateObject(3004,pl_pos[playerid][0],pl_pos[playerid][1],floatadd(pl_pos[playerid][3],cre),87.640026855469,342.13500976563350.07507324219);
        }
        
SetTimerEx("syncanim",dur,0,"i",playerid);
    }
    return 
1;

help me to fix this error please +rep
Reply
#2

Did you have ; https://sampforum.blast.hk/showthread.php?tid=120013
Reply
#3

native MapAndreas_Init(mode); // Used to initalise the data files in to memory - should be called at least once before any other function.
native MapAndreas_FindZ_For2DCoord(Float:X, Float:Y, &Float:Z); // return highest Z point (ground level) for the provided X,Y co-ordinate.
Reply
#4

i dont know what i do now ?
help please +rep
Reply
#5

fixed by me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)