SA-MP Forums Archive
Fps view help rep+ - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fps view help rep+ (/showthread.php?tid=333224)



Fps view help rep+ - redreaper666 - 10.04.2012

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


Re: Fps view help rep+ - zbt - 10.04.2012

upgrade to samp 0.3e


Re: Fps view help rep+ - ViniBorn - 10.04.2012

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;
}



Re: Fps view help rep+ - redreaper666 - 10.04.2012

thx repped


Re: Fps view help rep+ - Bleach79 - 10.04.2012

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;
}


Re: Fps view help rep+ - redreaper666 - 11.04.2012

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