Forum: Grand Theft Auto Series Modding - Our GTA Modding Team is the best around. Tutorials & Topics related to modding your GTA games, trophies, and save files! Discuss GTA game modding with the knowledgeable members of PSX-Scene and the Official GTA IV Mod Team.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Like Tree1Likes
  • 1 Post By MaxSpeed

Thread: Help error (redeclared as different kind of symbol)
  

Results 1 to 3 of 3
  1. #1 Exclamation Help error (redeclared as different kind of symbol) 
    Join Date
    May 2012
    Location
    Etats-Unis
    Posts
    50
    Downloads
    2
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    29
    Likes Received
    8
    sans-titre.png


    Here is the code:

    Code:
    Object rocketCar, bikeneon, bikeneon_save, rocketCar_save;
    Vehicle myveh;
    uint ntid, CI_RideCar02a_Ks_ = 0xDB0061B6, BM_air_landlites03 = 0xD20167BE;
     
    void rocketrider(void)
    {
        if ( IS_CHAR_ON_ANY_BIKE(GetPlayerPed()) )
        {
            if ( DOES_OBJECT_EXIST(rocketCar_save) && DOES_OBJECT_EXIST(bikeneon_save) )
            {
                DELETE_OBJECT(&rocketCar_save);
                DELETE_OBJECT(&bikeneon_save);
                PrintText("Rocket Rider skin removed");
            }
            else
            {
                GET_CAR_CHAR_IS_USING(GetPlayerPed(), &myveh);
                if ( IS_CAR_MODEL(myveh, MODEL_NRG900) || IS_CAR_MODEL(myveh, MODEL_PCJ) )
                {
                    float x, y, z;
     
                    REQUEST_MODEL(CI_RideCar02a_Ks_);
                    while ( !HAS_MODEL_LOADED(CI_RideCar02a_Ks_) ) WAIT(100);
                    CREATE_OBJECT(CI_RideCar02a_Ks_, 0.0f, 0.0f, 0.0f, &rocketCar, true);
                    MARK_MODEL_AS_NO_LONGER_NEEDED(CI_RideCar02a_Ks_);
     
                    ATTACH_OBJECT_TO_CAR(rocketCar, myveh, 0, 0.0f, 0.0f, 0.2f, 0.0f, 0.0f, 1.56f);
                    SET_OBJECT_VISIBLE(rocketCar, true);
                    FREEZE_OBJECT_POSITION(rocketCar, true);
                    GET_NETWORK_ID_FROM_OBJECT(rocketCar, &ntid);
                    SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES(ntid, true);
     
                    REQUEST_MODEL(BM_air_landlites03);
                    while ( !HAS_MODEL_LOADED(BM_air_landlites03) ) WAIT(10);
                    CREATE_OBJECT(BM_air_landlites03, 0.0f, 0.0f, 0.0f, &bikeneon, true);
                    MARK_MODEL_AS_NO_LONGER_NEEDED(BM_air_landlites03);
     
                    ATTACH_OBJECT_TO_CAR(bikeneon, myveh, 0, 0.0f, 0.5f, 0.2f, -1.58f, 0.0f, 0.0f);
                    SET_OBJECT_VISIBLE(bikeneon, true);
                    SET_OBJECT_INVINCIBLE(bikeneon, true);
                    FREEZE_OBJECT_POSITION(bikeneon, true);
                    GET_NETWORK_ID_FROM_OBJECT(bikeneon, &ntid);
                    SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES(ntid, true);
     
                    rocketCar_save = rocketCar;
                    bikeneon_save = bikeneon;
                    MARK_OBJECT_AS_NO_LONGER_NEEDED(&rocketCar);
                    MARK_OBJECT_AS_NO_LONGER_NEEDED(&bikeneon);
                    PrintText("Rocket Rider skin applied");
                }
                else PrintText("Rocker Rider only works with NRG or PCJ");
            }
        }
        else PrintText("You have no bike");
    }
    I put in the source code of (Muskel) but there is this error code this someone an idea.

    THANK YOU
    Reply With Quote  

  2. #2  
    MaxSpeed's Avatar
    MaxSpeed is offline Member
    Join Date
    Jun 2012
    Location
    MI, USA
    Posts
    57
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    29
    Likes Received
    18
    You have two functions named 'SpawnPed'
    Colt likes this.
    Se7enSins: Muskelprotze
    Current Project: Stash v2 (Using MenuLib)
    Reply With Quote  

  3. #3  
    JDMAlex's Avatar
    JDMAlex is offline & developer
    Join Date
    Nov 2010
    Posts
    723
    Downloads
    5
    Uploads
    1
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    190
    Likes Received
    442
    just find it and if its a duplicate then remove .... if you meant to have it there , give it a new name..
    Reply With Quote  

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