SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 22/09/2019, 02:11 PM   #1
wilking
Big Clucker
 
Join Date: May 2017
Posts: 88
Reputation: 0
Default OnPlayerEditDynamicObject Problem ! Help

hello all , i have a problem with OnPlayerEditDynamicObject .

This is my code

PHP Code:
for(new i=1i<MAX_BMi++){
    if(
BC[i][bmOwner] == -1){
             
ii i;
         break;
    }
}
GetPlayerPos(playeridpp[0], pp[1], pp[2]);
vw GetPlayerVirtualWorld(playerid);
int GetPlayerInterior(playerid);
SetPVarInt(playerid"iibit"BC[ii][bmObj]);
saveb(ii);
BC[ii][bmObj] = CreateDynamicObject(1838pp[0],pp[1],pp[2], 0.00.00vw,int);
Streamer_UpdateEx(playeridpp[0],pp[1],pp[2]);
EditDynamicObject(playeridBC[ii][bmObj]); // HERE 
I used EditDynamicObject. And everything was fine until the Save button was pressed
I realized that it didn't run through OnPlayerEditDynamicObject



(OnPlayerEditDynamicObject)
PHP Code:
if(response == EDIT_RESPONSE_FINAL)
{
        
    new 
iibit GetPVarInt(playerid"iibit");
    
BC[iibit][bmPos][0] = x;
    
BC[iibit][bmPos][1] = y;
    
BC[iibit][bmPos][2] = z;
    
BC[iibit][bmPosr][0] = rx;
    
BC[iibit][bmPosr][1] = ry;
    
BC[iibit][bmPosr][2] = rz;
    
printf("Read and save object"); // I don't see this line, which means it hasn't passed yet
    
saveb(iibit); // And it don't save
    
DeletePVar(playerid"iibit");
        return 
1;

But , It did not run the printf line .

I thought it might be in the EditDynamicObject section. Because I tried and succeeded. But this time I didn't know what was wrong, thanks for your help


Sorry , My English Not Good .
wilking is offline   Reply With Quote
Old 22/09/2019, 02:58 PM   #2
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,088
Reputation: 188
Default Re: OnPlayerEditDynamicObject Problem ! Help

Send whole OnPlayerEditDynamicObject function
__________________
Looking for someone to start drifting server, drop me a pm if you are interested.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem OnPlayerEditDynamicObject Libbyphay Scripting Help 1 04/08/2019 08:13 AM
Problem with OnPlayerEditDynamicObject jasperschellekens Scripting Help 2 17/04/2019 06:16 PM
OnPlayerEditDynamicObject Problem MRM Scripting Help 2 16/09/2018 11:17 AM
OnPlayerEditDynamicObject Problem sampkinq Scripting Help 1 09/06/2016 09:38 AM
OnPlayerEditDynamicObject - Problem Phil_Cutcliffe Scripting Help 4 24/02/2014 02:55 AM


All times are GMT. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.