need a bit of help
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

Add me on msn Finax@live.dk
Reply
#5

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.

Reply
#6

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)
Reply
#7

Sorry i alrdy added that code
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)