Fps view help rep+
#1

I get this errors when i start to compile:
Код:
E:\Programme\...\...\...\...\pawno\fps.pwn(10) : warning 217: loose indentation
E:\Programme\...\...\...\...\pawno\fps.pwn(11) : warning 217: loose indentation
E:\Programme\...\...\...\...\pawno\fps.pwn(11) : error 017: undefined symbol "AttachCameraToObject"
E:\Programme\...\...\...\...\pawno\fps.pwn(22) : error 017: undefined symbol "AttachCameraToObject"
Here is the script:
Код:
#include <a_samp>


new objet[MAX_PLAYERS]; 


public OnPlayerSpawn(playerid)
{
        objet[playerid] = CreateObject(19300, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0);
                AttachObjectToPlayer(objet[playerid], playerid, 0.0, 0.3, 0.7, 0, 0, 0); 
        AttachCameraToObject(playerid, objet[playerid]); 
}


public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        SetCameraBehindPlayer(playerid);
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
AttachCameraToObject(playerid, objet[playerid]);
}


public OnPlayerDisconnect(playerid, reason)
{
DestroyObject(objet[playerid]);
}
pls help me with that rep +
i know how to fix the loose indentation error
but how to fix the other one
Reply
#2

upgrade to samp 0.3e
Reply
#3

Compile with 0.3e

pawn Код:
#include <a_samp>

new objet[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    objet[playerid] = CreateObject(19300, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0);
    AttachObjectToPlayer(objet[playerid], playerid, 0.0, 0.3, 0.7, 0, 0, 0);
    AttachCameraToObject(playerid, objet[playerid]);
    return true;
}

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

public OnPlayerExitVehicle(playerid, vehicleid)
{
    AttachCameraToObject(playerid, objet[playerid]);
    return true;
}

public OnPlayerDisconnect(playerid, reason)
{
    DestroyObject(objet[playerid]);
    return true;
}
Reply
#4

thx repped
Reply
#5

Try This With 0.3e

Code:


#include <a_samp>

new objet[MAX_PLAYERS];


public OnPlayerSpawn(playerid)
{
objet[playerid] = CreateObject(19300, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0);
AttachObjectToPlayer(objet[playerid], playerid, 0.0, 0.3, 0.7, 0, 0, 0);
AttachCameraToObject(playerid, objet[playerid]);
}


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

public OnPlayerExitVehicle(playerid, vehicleid)
{
AttachCameraToObject(playerid, objet[playerid]);
return true;
}

public OnPlayerDisconnect(playerid, reason)
{
DestroyObject(objet[playerid]);
return true;
}
Reply
#6

If i put it in a filterscript it wont work but it gives me no error
what could be wrong `?!
-i setted already in .cfg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)