SA-MP Forums

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

Thread Tools Display Modes
Old 22/09/2019, 02:11 PM   #1
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++){
BC[i][bmOwner] == -1){
ii i;
GetPlayerPos(playeridpp[0], pp[1], pp[2]);
vw GetPlayerVirtualWorld(playerid);
int GetPlayerInterior(playerid);
BC[ii][bmObj] = CreateDynamicObject(1838pp[0],pp[1],pp[2], 0.00.00vw,int);
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

PHP Code:
if(response == EDIT_RESPONSE_FINAL)
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

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

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 02:20 AM.

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