[HELP]SetPlayerHoldingObject
#1

I got 3 Error! Any idea how to fix?


pawn Код:
#include <a_samp>

public OnPlayerSpawn(playerid)
{
    SetPlayerHoldingObject(playerid, 1609, 2); //Attach a turtle to the playerid's head!
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsPlayerHoldingObject(playerid)) StopPlayerHoldingObject(playerid);
    return 1;
}
ERROR!
pawn Код:
error 017: undefined symbol "SetPlayerHoldingObject"
error 017: undefined symbol "IsPlayerHoldingObject"
error 017: undefined symbol "StopPlayerHoldingObject"
Reply
#2

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
I got 3 Error! Any idea how to fix?


pawn Код:
#include <a_samp>

public OnPlayerSpawn(playerid)
{
    SetPlayerHoldingObject(playerid, 1609, 2); //Attach a turtle to the playerid's head!
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsPlayerHoldingObject(playerid)) StopPlayerHoldingObject(playerid);
    return 1;
}
ERROR!
pawn Код:
error 017: undefined symbol "SetPlayerHoldingObject"
error 017: undefined symbol "IsPlayerHoldingObject"
error 017: undefined symbol "StopPlayerHoldingObject"
Update all your includes to the latest ones from http://www.sa-mp.com in the server package.
If you did, make sure to not doubleclick on the script, It might open the script in the wrong pawno which uses old includes in another folder.

Open the pawno.exe that has the latest includes, and Open the script from within Pawno.
Reply
#3

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
Update all your includes to the latest ones from http://www.sa-mp.com in the server package.
If you did, make sure to not doubleclick on the script, It might open the script in the wrong pawno which uses old includes in another folder.

Open the pawno.exe that has the latest includes, and Open the script from within Pawno.
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)