Using of EditAttachedObject
#1

Hello everybody,

I try to use EditAttachedObject in my script.

Unfortunately, when I compile a little test, the compiler return me an error.
My code :
Код:
if (strcmp(cmd, "/test", true) == 0)
{
    EditAttachedObject(playerid, 0); // HERE IS THE ERROR
    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You now edit your attached object on index slot 0!");
    return 1;
}
The error :
Код:
D:\_Games\GTA San Andreas\Server\gamemodes\assault.pwn(1904) : error 017: undefined symbol "EditAttachedObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
I checked in the "a_objects.inc" include, but no trace of "EditAttachedObject" function.
What I'm doing wrong ? Am I missing an include ?

My includes :
Код:
    #include <a_samp>
    #include <a_sampmysql>
    #include <utils>
    #include <streamer>
    #include <irc>
    #include <bodyparts>
    #include <a_objects>
Thanks a lot !
Reply
#2

replace 'include' folder from your-server/pawno with 'include' from sa-mp-server-0.3e-RC2.rar(or something like that) : pawno/include
Reply
#3

update your includes. you must be having two pawno.exe's and using the older one.
Reply
#4

This feature is in SAMP 0.3e , upgrade to that!
Reply
#5

Mouarf !

Sorry for this stupid thread...

I redownloaded the includes on http://www.sa-mp.com/download.php but their server file isn't up to date.

I found the last version on https://sampforum.blast.hk/showthread.php?tid=323271

Thanks !
Reply
#6

edit: nvm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)