Not possible?
#1

Hi I wanted to convert script from 0.3B to C but it gives me that

Quote:

C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(1 2071) : error 017: undefined symbol "IsPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(1 2071) : error 017: undefined symbol "StopPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9872) : error 017: undefined symbol "IsPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9872) : error 017: undefined symbol "StopPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9876) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9877) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 987 : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9887) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 988 : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9889) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 989 : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9899) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9900) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9909) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9910) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9919) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9920) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9929) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9930) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9939) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9947) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 994 : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9949) : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 995 : error 017: undefined symbol "SetPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9959) : error 017: undefined symbol "SetPlayerHoldingObject"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


25 Errors.

It only happens in 0.3c
Reply
#2

There's a define. Use it.
Reply
#3

Paste this on the top of your script:
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)

Quote:
Originally Posted by Hornet600
Посмотреть сообщение
Is the version C already launched?
The test (RC) version of 0.3c can be launched.
You can find more details on the sticked topic.
Reply
#4

Quote:
Originally Posted by Amit_B
Посмотреть сообщение
Paste this on the top of your script:
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)


The test (RC) version of 0.3c can be launched.
You can find more details on the sticked topic.
done but


Quote:

C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(1 2072) : error 017: undefined symbol "IsPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(1 2072) : error 017: undefined symbol "StopPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9873) : error 017: undefined symbol "IsPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9873) : error 017: undefined symbol "StopPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9877) : error 001: expected token: ";", but found "#define"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9877) : error 029: invalid expression, assumed zero
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9877) : error 017: undefined symbol "StopPlayerHoldingObject"
C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(2 9877) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Errors.

Reply
#5

Add these to your script.

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
#6

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
Add these to your script.

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)
this sees to fix it but now there is one left

Quote:

C:\Users\Namaco\Desktop\rxrp\gamemodes\rtprp.pwn(4 1) : warning 201: redefinition of constant/macro (symbol "SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9 )")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Reply
#7

bump :/ anyone lol ITS last one >.<
Reply
#8

You added the #define SetPlayerHoldingObject twice.
Reply
#9

Remove one of the SetPlayerHoldingObject macros.

Can you next time read the error/warning?
Reply
#10

Got it all fixed thanks everyone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)