[HELP]SetPlayerHoldingObject - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]SetPlayerHoldingObject (
/showthread.php?tid=189493)
[HELP]SetPlayerHoldingObject - Larsey123IsMe - 12.11.2010
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"
Re: [HELP]SetPlayerHoldingObject -
Mike Garber - 12.11.2010
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.
Re: [HELP]SetPlayerHoldingObject - Larsey123IsMe - 12.11.2010
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