Callback problem
#1

Hey, I'm having a issue with:
Код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX,
The callback is not being called when I am editing a object, or done editing it.

This is how my code looks like at the moment:
PHP код:
public OnPlayerEditObject(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ)
{
    
printf("Debug 1");
    if(
response == EDIT_RESPONSE_FINAL)
    {
        
printf("Debug 2");
    }
    return 
1;

Incase someone is going to ask... Yes i'm using EditObject and not EditAttachedObject

Thanks in advance!
Reply
#2

PHP код:
public OnPlayerEditObject(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ)
{
    
printf("Debug 1");
    if(
response == EDIT_RESPONSE_FINAL)
    {
        
printf("Debug 2");
    }
    return 
1;

This callback does not handle returns.

PHP код:
public OnPlayerEditObject(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ)
{
    
printf("Debug 1");
    if(
response == EDIT_RESPONSE_FINAL)
    {
        
printf("Debug 2");
    }
    

Reply
#3

Already tryd without the returns, dosn't works.
Reply
#4

Anyone? :/
Reply
#5

bump
Reply
#6

I just found out whats causing the problem, but I don't know how to fix it though.
The problem is due a FS of mine that is using #include <streamer>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)