SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/08/2011, 08:50 PM   #1
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 12
Default [HELP] AttachObjectToVehicle

Hey everybody , i donno why AttachObjectToVehicle is'nt working , what do i have to do please ?
Cuz when i compile it i see: Error:Attachobjecttovehicle is already defined


Thanks.
__________________
Alvin007 is offline   Reply With Quote
Old 22/08/2011, 03:47 AM   #2
Horrible
Huge Clucker
 
Horrible's Avatar
 
Join Date: Jun 2011
Location: Indonesia
Posts: 453
Reputation: 83
Default Re: [HELP] AttachObjectToVehicle

Quote:
Originally Posted by Alvin007 View Post
Hey everybody , i donno why AttachObjectToVehicle is'nt working , what do i have to do please ?
Cuz when i compile it i see: Error:Attachobjecttovehicle is already defined


Thanks.
can see the code?
__________________
Click to see my works
Horrible is offline   Reply With Quote
Old 22/08/2011, 03:49 AM   #3
=WoR=G4M3Ov3r
High-roller
 
Join Date: Nov 2010
Location: www.Ambrosia-Servers.com
Posts: 1,751
Reputation: 329
Default Re: [HELP] AttachObjectToVehicle

Try adding it under :

PHP Code:
public OnGameModeInit()

=WoR=G4M3Ov3r is offline   Reply With Quote
Old 22/08/2011, 06:41 AM   #4
[MWR]Blood
High-roller
 
Join Date: Apr 2009
Posts: 2,268
Reputation: 105
Default Re: [HELP] AttachObjectToVehicle

Show the code...
Aswell I don't see how adding it under gamemodeinit would work.
__________________
[MWR]Blood is offline   Reply With Quote
Old 22/08/2011, 09:38 PM   #5
Alvin007
Huge Clucker
 
Alvin007's Avatar
 
Join Date: Mar 2011
Location: Tunisia
Posts: 245
Reputation: 12
Default Re : [HELP] AttachObjectToVehicle

sorry i'm coming everyday connecting from an internet cafe , and what you will see in the code is just like what i wrote. Thank you again , i need help
__________________
Alvin007 is offline   Reply With Quote
Old 22/08/2011, 09:46 PM   #6
Davz*|*Criss
Gangsta
 
Davz*|*Criss's Avatar
 
Join Date: Jan 2011
Posts: 778
Reputation: 15
Default Re: [HELP] AttachObjectToVehicle

So its very hard to understand without showing code, so please post code to understand what's the problem.
__________________
Join Extreme Missions Now: 176.31.192.96:7778!
Davz*|*Criss is offline   Reply With Quote
Old 22/08/2011, 09:46 PM   #7
Zonoya
Gangsta
 
Zonoya's Avatar
 
Join Date: Jul 2011
Location: Am I in Rio de Janeiro or the Amazon, you tell me?
Posts: 664
Reputation: 19
Default Re: [HELP] AttachObjectToVehicle

its AttachObjectToVehicle not Attachobjecttovehicle and if ur using a streamer it wont work use createobject first then AttachObjectToVehicle
__________________
Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}
Zonoya is offline   Reply With Quote
Old 22/08/2011, 09:51 PM   #8
Davz*|*Criss
Gangsta
 
Davz*|*Criss's Avatar
 
Join Date: Jan 2011
Posts: 778
Reputation: 15
Default Re: [HELP] AttachObjectToVehicle

Dude read properly!

He mean he get an error that AttachObjectToVehicle is already defined!

I think you have already defined AttachObjectToVehicle!
@
__________________
Join Extreme Missions Now: 176.31.192.96:7778!
Davz*|*Criss is offline   Reply With Quote
Old 22/08/2011, 09:56 PM   #9
Zonoya
Gangsta
 
Zonoya's Avatar
 
Join Date: Jul 2011
Location: Am I in Rio de Janeiro or the Amazon, you tell me?
Posts: 664
Reputation: 19
Default Re: [HELP] AttachObjectToVehicle

sorry haven't got my head on me today but it says
Quote:
Error:Attachobjecttovehicle is already defined
not AttachObjectToVehicle
__________________
Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}
Zonoya is offline   Reply With Quote
Old 22/08/2011, 09:58 PM   #10
Zonoya
Gangsta
 
Zonoya's Avatar
 
Join Date: Jul 2011
Location: Am I in Rio de Janeiro or the Amazon, you tell me?
Posts: 664
Reputation: 19
Default Re: [HELP] AttachObjectToVehicle

as u wouldn't need to define AttachObjectToVehicle As It Comes With PAWNO
__________________
Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}
Zonoya 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
AttachObjectToVehicle cruising Help Archive 7 20/08/2011 01:31 AM
AttachObjectToVehicle HELP PLS DevoLpeR Help Archive 14 27/04/2011 07:53 PM
AttachObjectToVehicle help?? :( thimo Help Archive 5 01/01/2011 06:42 PM


All times are GMT. The time now is 09:01 PM.


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