SA-MP Forums Archive
need a bit of help - 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: need a bit of help (/showthread.php?tid=212080)



need a bit of help - draken7444 - 16.01.2011

C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(1080 : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(16574) : warning 202: number of arguments does not match definition
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(16574) : warning 202: number of arguments does not match definition
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(16574) : warning 202: number of arguments does not match definition
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(17121) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(17125) : error 017: undefined symbol "StopPlayerHoldingObject"
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(21580) : warning 217: loose indentation
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(21639) : warning 217: loose indentation
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(40891) : error 017: undefined symbol "StopPlayerHoldingObject"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Anyone could help me with this


Re: need a bit of help - Toreno - 16.01.2011

StopPlayerHoldingObject;
SetPlayerHoldingObject;
IsPlayerHoldingObject;

Has been removed, there are new functions.

https://sampwiki.blast.hk/wiki/RemovePlayerAttachedObject
https://sampwiki.blast.hk/wiki/IsPlayerA...ObjectSlotUsed
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject


Re: need a bit of help - draken7444 - 16.01.2011

Quote:
Originally Posted by EliranPesahov
Посмотреть сообщение
StopPlayerHoldingObject;
SetPlayerHoldingObject;
IsPlayerHoldingObject;

Has been removed, there are new functions.

https://sampwiki.blast.hk/wiki/RemovePlayerAttachedObject
https://sampwiki.blast.hk/wiki/IsPlayerA...ObjectSlotUsed
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
Possible you could help me with it im not used to add such things im just an editor


Re: need a bit of help - draken7444 - 16.01.2011

Add me on msn Finax@live.dk


Re: need a bit of help - draken7444 - 16.01.2011

New Errors
Quote:

C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(10812) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(1657 : warning 202: number of arguments does not match definition
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(1657 : warning 202: number of arguments does not match definition
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(1657 : warning 202: number of arguments does not match definition
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(17125) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(21584) : warning 217: loose indentation
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(21643) : warning 217: loose indentation
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(23125) : error 004: function "Random" is not implemented
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(36879) : warning 225: unreachable code
C:\Users\Daniel\Documents\Project World Roleplay\gamemodes\sarp.pwn(36879) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.




Re: need a bit of help - Toreno - 16.01.2011

Undo whatever you did, and put this on top of your script;
And see if it works.
pawn Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)



Re: need a bit of help - draken7444 - 16.01.2011

Sorry i alrdy added that code