OnPlayerEditDynamicObject - Problem
#1

What's wrong with this?

pawn Code:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    if(!IsValidDynamicObject(objectid)) return 0;
        MoveDynamicObject(objectid, x, y, z, 10.0, rx, ry, rz);
    }
    if(response == EDIT_RESPONSE_FINAL)
    {
        for(new i; i < sizeof(ObjectInfo); i++)
        {
            if(ObjectInfo[i][oCreated] == 0 && EditingObject[playerid] == -1)
            {
                new string[128];
                format(string, sizeof(string), "Object ID %d saved", i);
                Adminmsg(string);
                ObjectInfo[i][oVW] = GetPlayerVirtualWorld(playerid);
                ObjectInfo[i][oINT] = GetPlayerInterior(playerid);
                ObjectInfo[i][oX] = x;
                ObjectInfo[i][oY] = y;
                ObjectInfo[i][oZ] = z;
                ObjectInfo[i][oRX] = rx;
                ObjectInfo[i][oRY] = ry;
                ObjectInfo[i][oRZ] = rz;
                ObjectInfo[i][oCreated] = 1;
                SaveObjects();
                format(string, sizeof(string), "[OBJECT CREATE] ID %d | Name %s | SAVED", i, ObjectInfo[i][oName]);
                SendClientMessage(playerid, COLOR_ORANGE, string);
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                ObjectInfo[i][oObject] = AddDynamicObject(ObjectInfo[i][oModel],ObjectInfo[i][oX],ObjectInfo[i][oY],ObjectInfo[i][oZ],ObjectInfo[i][oRX],ObjectInfo[i][oRY],ObjectInfo[i][oRZ],ObjectInfo[i][oVW],ObjectInfo[i][oINT], -1, 200.0);
                if(ObjectInfo[i][oChair] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $400 for the chair");
                    GivePlayerCash(playerid, -400);
                }
                if(ObjectInfo[i][oBed] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $450 for the bed");
                    GivePlayerCash(playerid, -450);
                }
                if(ObjectInfo[i][oTable] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $150 for the table");
                    GivePlayerCash(playerid, -150);
                }
                if(ObjectInfo[i][oElectronic] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $500 for the electronics");
                    GivePlayerCash(playerid, -500);
                }
                if(ObjectInfo[i][oCabinet] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $250 for the cabinet");
                    GivePlayerCash(playerid, -250);
                }
                if(ObjectInfo[i][oKitchen] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $300 for the kitchen furniture");
                    GivePlayerCash(playerid, -300);
                }
                if(ObjectInfo[i][oPicture] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $80 for the picture");
                    GivePlayerCash(playerid, -80);
                }
                if(ObjectInfo[i][oDoor] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $200 for the door");
                    GivePlayerCash(playerid, -200);
                }
                if(ObjectInfo[i][oSafe] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $2000 for the safe");
                    GivePlayerCash(playerid, -2000);
                }
                if(ObjectInfo[i][oBath] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $250 for the bathroom furniture");
                    GivePlayerCash(playerid, -250);
                }
                return 1;
            }
            if(ObjectInfo[i][oCreated] == 1 && EditingObject[playerid] == i)
            {
                new string[128];
                ObjectInfo[i][oVW] = GetPlayerVirtualWorld(playerid);
                ObjectInfo[i][oINT] = GetPlayerInterior(playerid);
                ObjectInfo[i][oX] = x;
                ObjectInfo[i][oY] = y;
                ObjectInfo[i][oZ] = z;
                ObjectInfo[i][oRX] = rx;
                ObjectInfo[i][oRY] = ry;
                ObjectInfo[i][oRZ] = rz;
                ObjectInfo[i][oCreated] = 1;
                SaveObjects();
                format(string, sizeof(string), "[OBJECT EDIT] ID %d | Name %s | SAVED", i, ObjectInfo[i][oName]);
                SendClientMessage(playerid, COLOR_ORANGE, string);
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                ObjectInfo[i][oObject] = AddDynamicObject(ObjectInfo[i][oModel],ObjectInfo[i][oX],ObjectInfo[i][oY],ObjectInfo[i][oZ],ObjectInfo[i][oRX],ObjectInfo[i][oRY],ObjectInfo[i][oRZ],ObjectInfo[i][oVW],ObjectInfo[i][oINT], -1, 200.0);
                EditingObject[playerid] = -1;
                return 1;
            }
        }
    }
    if(response == EDIT_RESPONSE_CANCEL)
    {
        for(new i; i < sizeof(ObjectInfo); i++)
        {
            if(ObjectInfo[i][oCreated] == 0 && EditingObject[playerid] == -1)
            {
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                SendClientMessage(playerid, COLOR_ORANGE, "[OBJECT CREATE] - Cancelled");
                ObjectInfo[i][oModel] = 0;
                ObjectInfo[i][oObject] = 0;
                ObjectInfo[i][oChair] = 0;
                ObjectInfo[i][oBed] = 0;
                ObjectInfo[i][oTable] = 0;
                ObjectInfo[i][oElectronic] = 0;
                ObjectInfo[i][oCabinet] = 0;
                ObjectInfo[i][oKitchen] = 0;
                ObjectInfo[i][oPicture] = 0;
                ObjectInfo[i][oDoor] = 0;
                ObjectInfo[i][oSafe] = 0;
                strdel(ObjectInfo[i][oName], 0, 20);
                return 1;
            }
            if(ObjectInfo[i][oCreated] == 1 && EditingObject[playerid] == i)
            {
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                ObjectInfo[i][oObject] = AddDynamicObject(ObjectInfo[i][oModel],ObjectInfo[i][oX],ObjectInfo[i][oY],ObjectInfo[i][oZ],ObjectInfo[i][oRX],ObjectInfo[i][oRY],ObjectInfo[i][oRZ],ObjectInfo[i][oVW],ObjectInfo[i][oINT], -1, 200.0);
                SendClientMessage(playerid, COLOR_ORANGE, "[OBJECT EDIT] - Cancelled");
                EditingObject[playerid] = -1;
                return 1;
            }
        }
    }
    return true;
}
Reply
#2

If I remove this from my script it compiles fine but when adding this it has a hissy fit. Any ideas?
Reply
#3

What do you mean by hissy fit, I have made millions of furniture systems with it but can't seem to see whats wrong, Is there any errors or anything, You havn't told us what is happening.
Reply
#4

Quote:
Originally Posted by jueix
View Post
What do you mean by hissy fit, I have made millions of furniture systems with it but can't seem to see whats wrong, Is there any errors or anything, You havn't told us what is happening.
I'd love to tell you what's wrong but all I can say is without this code in my script it compiles fine. If I compile it with it in this is what happens....

pawn Code:
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\pawno\include\dini.inc(257) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2110) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2113) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2222) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2252) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2282) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2312) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2342) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2372) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2409) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2439) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2469) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2499) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2529) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2559) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2596) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2626) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2656) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2686) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2716) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2746) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2783) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2813) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2843) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2873) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2903) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2933) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(2944) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3463) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3514) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3532) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3544) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3639) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3675) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3712) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3738) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3739) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3864) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3919) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(3980) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(4020) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(4322) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(4498) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(4591) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(4899) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(4902) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5045) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5050) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5055) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5060) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5065) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5070) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5075) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5080) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5085) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(5090) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9731) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9743) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9756) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9769) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9782) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9830) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9848) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(9866) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(10033) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(10417) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11242) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11275) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11292) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11431) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11903) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11937) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11966) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(11988) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(12137) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(12601) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(12984) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(12985) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13011) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13012) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13038) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13039) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13065) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13066) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13092) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13093) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13119) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13120) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13146) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13147) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13173) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13174) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13200) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13201) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13269) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13270) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13313) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(13314) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14062) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14063) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14138) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14139) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14460) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14469) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14478) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14487) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14513) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14522) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14531) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14540) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(14906) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15151) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15160) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15169) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15178) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15187) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15196) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15425) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15469) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15529) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15572) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15615) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15658) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15719) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15762) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15805) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15848) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15891) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15948) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(15996) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16043) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16107) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16150) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16193) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16355) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16396) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16437) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16482) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16525) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16542) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16566) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16609) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16652) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16695) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16738) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16781) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16824) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16867) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16912) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(16955) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17000) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17044) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17089) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17148) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17207) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17264) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17355) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17380) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17658) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17683) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17709) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17735) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17777) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17803) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17905) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17929) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(17955) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(18142) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(18397) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(18659) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(18914) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(18915) : warning 202: number of arguments does not match definition
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19208) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19232) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19402) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19424) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19451) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19462) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19494) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19521) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19546) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19573) : error 035: argument type mismatch (argument 1)
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_DynamicEdit.pwn(19651) : error 035: argument type mismatch (argument 1)

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Sorry being a total doosh lol fixed it now!
Reply
#5

Code:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
    if(!IsValidDynamicObject(objectid)) return 0;
        MoveDynamicObject(objectid, x, y, z, 10.0, rx, ry, rz);
    /*}this bracket was causing the problem*/
    if(response == EDIT_RESPONSE_FINAL)
    {
        for(new i; i < sizeof(ObjectInfo); i++)
        {
            if(ObjectInfo[i][oCreated] == 0 && EditingObject[playerid] == -1)
            {
                new string[128];
                format(string, sizeof(string), "Object ID %d saved", i);
                Adminmsg(string);
                ObjectInfo[i][oVW] = GetPlayerVirtualWorld(playerid);
                ObjectInfo[i][oINT] = GetPlayerInterior(playerid);
                ObjectInfo[i][oX] = x;
                ObjectInfo[i][oY] = y;
                ObjectInfo[i][oZ] = z;
                ObjectInfo[i][oRX] = rx;
                ObjectInfo[i][oRY] = ry;
                ObjectInfo[i][oRZ] = rz;
                ObjectInfo[i][oCreated] = 1;
                SaveObjects();
                format(string, sizeof(string), "[OBJECT CREATE] ID %d | Name %s | SAVED", i, ObjectInfo[i][oName]);
                SendClientMessage(playerid, COLOR_ORANGE, string);
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                ObjectInfo[i][oObject] = AddDynamicObject(ObjectInfo[i][oModel],ObjectInfo[i][oX],ObjectInfo[i][oY],ObjectInfo[i][oZ],ObjectInfo[i][oRX],ObjectInfo[i][oRY],ObjectInfo[i][oRZ],ObjectInfo[i][oVW],ObjectInfo[i][oINT], -1, 200.0);
                if(ObjectInfo[i][oChair] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $400 for the chair");
                    GivePlayerCash(playerid, -400);
                }
                if(ObjectInfo[i][oBed] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $450 for the bed");
                    GivePlayerCash(playerid, -450);
                }
                if(ObjectInfo[i][oTable] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $150 for the table");
                    GivePlayerCash(playerid, -150);
                }
                if(ObjectInfo[i][oElectronic] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $500 for the electronics");
                    GivePlayerCash(playerid, -500);
                }
                if(ObjectInfo[i][oCabinet] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $250 for the cabinet");
                    GivePlayerCash(playerid, -250);
                }
                if(ObjectInfo[i][oKitchen] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $300 for the kitchen furniture");
                    GivePlayerCash(playerid, -300);
                }
                if(ObjectInfo[i][oPicture] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $80 for the picture");
                    GivePlayerCash(playerid, -80);
                }
                if(ObjectInfo[i][oDoor] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $200 for the door");
                    GivePlayerCash(playerid, -200);
                }
                if(ObjectInfo[i][oSafe] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $2000 for the safe");
                    GivePlayerCash(playerid, -2000);
                }
                if(ObjectInfo[i][oBath] == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You were charged $250 for the bathroom furniture");
                    GivePlayerCash(playerid, -250);
                }
                return 1;
            }
            if(ObjectInfo[i][oCreated] == 1 && EditingObject[playerid] == i)
            {
                new string[128];
                ObjectInfo[i][oVW] = GetPlayerVirtualWorld(playerid);
                ObjectInfo[i][oINT] = GetPlayerInterior(playerid);
                ObjectInfo[i][oX] = x;
                ObjectInfo[i][oY] = y;
                ObjectInfo[i][oZ] = z;
                ObjectInfo[i][oRX] = rx;
                ObjectInfo[i][oRY] = ry;
                ObjectInfo[i][oRZ] = rz;
                ObjectInfo[i][oCreated] = 1;
                SaveObjects();
                format(string, sizeof(string), "[OBJECT EDIT] ID %d | Name %s | SAVED", i, ObjectInfo[i][oName]);
                SendClientMessage(playerid, COLOR_ORANGE, string);
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                ObjectInfo[i][oObject] = AddDynamicObject(ObjectInfo[i][oModel],ObjectInfo[i][oX],ObjectInfo[i][oY],ObjectInfo[i][oZ],ObjectInfo[i][oRX],ObjectInfo[i][oRY],ObjectInfo[i][oRZ],ObjectInfo[i][oVW],ObjectInfo[i][oINT], -1, 200.0);
                EditingObject[playerid] = -1;
                return 1;
            }
        }
    }
    if(response == EDIT_RESPONSE_CANCEL)
    {
        for(new i; i < sizeof(ObjectInfo); i++)
        {
            if(ObjectInfo[i][oCreated] == 0 && EditingObject[playerid] == -1)
            {
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                SendClientMessage(playerid, COLOR_ORANGE, "[OBJECT CREATE] - Cancelled");
                ObjectInfo[i][oModel] = 0;
                ObjectInfo[i][oObject] = 0;
                ObjectInfo[i][oChair] = 0;
                ObjectInfo[i][oBed] = 0;
                ObjectInfo[i][oTable] = 0;
                ObjectInfo[i][oElectronic] = 0;
                ObjectInfo[i][oCabinet] = 0;
                ObjectInfo[i][oKitchen] = 0;
                ObjectInfo[i][oPicture] = 0;
                ObjectInfo[i][oDoor] = 0;
                ObjectInfo[i][oSafe] = 0;
                strdel(ObjectInfo[i][oName], 0, 20);
                return 1;
            }
            if(ObjectInfo[i][oCreated] == 1 && EditingObject[playerid] == i)
            {
                DestroyDynamicObject(ObjectInfo[i][oObject]);
                ObjectInfo[i][oObject] = AddDynamicObject(ObjectInfo[i][oModel],ObjectInfo[i][oX],ObjectInfo[i][oY],ObjectInfo[i][oZ],ObjectInfo[i][oRX],ObjectInfo[i][oRY],ObjectInfo[i][oRZ],ObjectInfo[i][oVW],ObjectInfo[i][oINT], -1, 200.0);
                SendClientMessage(playerid, COLOR_ORANGE, "[OBJECT EDIT] - Cancelled");
                EditingObject[playerid] = -1;
                return 1;
            }
        }
    }
    return true;
}
I think its the mismatched closing brace below the move dynamic object function right below your first if construct. i didnt see what your code does so depending on that add an opening brace or remove the closing brace.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)