Posts: 91
Threads: 24
Joined: Oct 2010
Reputation:
0
#define HI_x x
HI_SetPlayerPos(playerid,0.0,0.0,0.0);
and the compiler occur error undefined "HI_SetPlayerPos".
How to fix that? I should be ok, isn't it?
Posts: 882
Threads: 50
Joined: Jun 2012
Reputation:
0
1. The difine is useless does nothing in the script
2. The error "undefined" tells that the function is not declared, so just go and declare it somewhere.
And SetPlayerPos has same parameters.Then what are trying by creating a new function??
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Who's marco? What are you trying to do? Hook a function? That isn't going to do anything, just redirect HI_SetPlayerPos to SetPlayerPos (though, the x should be %0).
Posts: 91
Threads: 24
Joined: Oct 2010
Reputation:
0
Thank you everyone. Because macro in C does not permit %0 so I use x instead.